Skip to content

Commit 332ef27

Browse files
committed
Merge pull request hestiacp#535 from SysVoid/patch-7
[HIGH PRIORITY] Forgot to escape command arguments
2 parents df0d6c1 + fc0e7ba commit 332ef27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/api/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
$i++;
4343
if (!empty($_POST['arg' . $i]))
4444
{
45-
$args[] = $_POST['arg' . $i];
45+
$args[] = escapeshellarg($_POST['arg' . $i]);
4646
continue;
4747
}
4848
break;

0 commit comments

Comments
 (0)