From 51125fc904ad7f77b45dfadd7d29800697c6dc4d Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 29 Sep 2015 17:59:04 +0300 Subject: [PATCH] fix for symlinked /tmp dir --- web/login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/login/index.php b/web/login/index.php index 461f1f92..0c9e48fa 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);