Skip to content

Commit 51125fc

Browse files
committed
fix for symlinked /tmp dir
1 parent 687f366 commit 51125fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/login/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
$v_user = escapeshellarg($_POST['user']);
3636

3737
// Send password via tmp file
38-
$v_password = tempnam("/tmp","vst");
38+
$v_password = exec('mktemp -p /tmp');
3939
$fp = fopen($v_password, "w");
4040
fwrite($fp, $_POST['password']."\n");
4141
fclose($fp);

0 commit comments

Comments
 (0)