diff --git a/web/login/index.php b/web/login/index.php index 461f1f92e..0c9e48fa9 100644 --- a/web/login/index.php +++ b/web/login/index.php @@ -35,7 +35,7 @@ if (isset($_POST['user']) && isset($_POST['password'])) { $v_user = escapeshellarg($_POST['user']); // Send password via tmp file - $v_password = tempnam("/tmp","vst"); + $v_password = exec('mktemp -p /tmp'); $fp = fopen($v_password, "w"); fwrite($fp, $_POST['password']."\n"); fclose($fp);