From 6359259dbb1e8d5b569f569a7089abffd9259d30 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 1 Mar 2021 15:24:18 +0300 Subject: simplify internal authentication code and bump default algo to SSHA-512 --- api/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/index.php b/api/index.php index 430082f16..750a95721 100644 --- a/api/index.php +++ b/api/index.php @@ -46,7 +46,7 @@ UserHelper::load_user_plugins($_SESSION["uid"]); } - $method = strtolower($_REQUEST["op"]); + $method = strtolower($_REQUEST["op"] ?? ""); $handler = new API($_REQUEST); -- cgit v1.2.3