summaryrefslogtreecommitdiff
path: root/api/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/index.php')
-rw-r--r--api/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/index.php b/api/index.php
index 4a5c1bb31..333eb0dc9 100644
--- a/api/index.php
+++ b/api/index.php
@@ -80,8 +80,8 @@
case "login":
$login = db_escape_string($_REQUEST["user"]);
- $password = db_escape_string($_REQUEST["password"]);
- $password_base64 = db_escape_string(base64_decode($_REQUEST["password"]));
+ $password = $_REQUEST["password"];
+ $password_base64 = base64_decode($_REQUEST["password"]);
if (SINGLE_USER_MODE) $login = "admin";