Просмотр исходного кода

Merge pull request #535 from SysVoid/patch-7

[HIGH PRIORITY] Forgot to escape command arguments
Serghey Rodin 10 лет назад
Родитель
Сommit
332ef2797e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/api/index.php

+ 1 - 1
web/api/index.php

@@ -42,7 +42,7 @@ if (isset($_POST['user']) || isset($_POST['hash'])) {
         $i++;
         $i++;
         if (!empty($_POST['arg' . $i]))
         if (!empty($_POST['arg' . $i]))
         {
         {
-            $args[] = $_POST['arg' . $i];
+            $args[] = escapeshellarg($_POST['arg' . $i]);
             continue;
             continue;
         }
         }
         break;
         break;