Prechádzať zdrojové kódy

Forgot to escape that

Whoopsies
System Void 10 rokov pred
rodič
commit
fc0e7ba28b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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;