Răsfoiți Sursa

fix for symlinked /tmp dir

Serghey Rodin 10 ani în urmă
părinte
comite
51125fc904
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      web/login/index.php

+ 1 - 1
web/login/index.php

@@ -35,7 +35,7 @@ if (isset($_POST['user']) && isset($_POST['password'])) {
     $v_user = escapeshellarg($_POST['user']);
     $v_user = escapeshellarg($_POST['user']);
 
 
     // Send password via tmp file
     // Send password via tmp file
-    $v_password = tempnam("/tmp","vst");
+    $v_password = exec('mktemp -p /tmp');
     $fp = fopen($v_password, "w");
     $fp = fopen($v_password, "w");
     fwrite($fp, $_POST['password']."\n");
     fwrite($fp, $_POST['password']."\n");
     fclose($fp);
     fclose($fp);