mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
Restrict v-make-tmp-file to tmp folder
This commit is contained in:
parent
bbe06d10b6
commit
ea1e22613e
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ if (isset($_POST['user']) || isset($_POST['hash'])) {
|
|||
// Check command
|
||||
if ($cmd == "'v-make-tmp-file'") {
|
||||
// Used in DNS Cluster
|
||||
$fp = fopen($_POST['arg2'], 'w');
|
||||
$fp = fopen('/tmp/'.basename($_POST['arg2']), 'w');
|
||||
fwrite($fp, $_POST['arg1']."\n");
|
||||
fclose($fp);
|
||||
$return_var = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue