Ver Fonte

Forgot to escape that

Whoopsies
System Void há 10 anos atrás
pai
commit
fc0e7ba28b
1 ficheiros alterados com 1 adições e 1 exclusões
  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++;
         if (!empty($_POST['arg' . $i]))
         {
-            $args[] = $_POST['arg' . $i];
+            $args[] = escapeshellarg($_POST['arg' . $i]);
             continue;
         }
         break;