Просмотр исходного кода

Security fix for API hash check

Serghey Rodin 7 лет назад
Родитель
Сommit
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;
         }
     }