Преглед изворни кода

Security fix for API hash check

Serghey Rodin пре 7 година
родитељ
комит
ca3a9e0895
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      web/api/index.php

+ 2 - 0
web/api/index.php

@@ -58,6 +58,8 @@ if (isset($_POST['user']) || isset($_POST['hash'])) {
                 echo 'Error: authentication failed';
                 exit;
             }
+        } else {
+            $return_var = 1;
         }
     }