瀏覽代碼

Security fix for API hash check

Serghey Rodin 8 年之前
父節點
當前提交
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;
         }
     }