mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
fix for symlinked /tmp dir
This commit is contained in:
parent
687f36688a
commit
51125fc904
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue