Explorar o código

Security fix for API hash check

Serghey Rodin %!s(int64=8) %!d(string=hai) anos
pai
achega
ca3a9e0895
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
         }
     }