From 906cc09f630f1527becb4a14bdd9fc5dae2a3a67 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 15 Aug 2019 01:56:42 -0600 Subject: [PATCH] Update authentication.php --- .../resources/classes/authentication.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index 6f4d31044b..05c5d4b48d 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -114,8 +114,8 @@ class authentication { $this->domain_name = $_SERVER["HTTP_HOST"]; //get the domain name from the username - if ($_SESSION["user"]["unique"]["text"] != "global") { - $username_array = explode("@", check_str($_REQUEST["username"])); + if ($_SESSION["users"]["unique"]["text"] != "global") { + $username_array = explode("@", $_REQUEST["username"]); if (count($username_array) > 1) { //get the domain name $domain_name = $username_array[count($username_array) -1]; @@ -131,7 +131,7 @@ class authentication { //if the domain exists then set domain_name and update the username if ($domain_exists) { $this->domain_name = $domain_name; - $this->username = substr(check_str($_REQUEST["username"]), 0, -(strlen($domain_name)+1)); + $this->username = substr($_REQUEST["username"], 0, -(strlen($domain_name)+1)); $_SESSION['domain_uuid'] = $this->domain_uuid; } //unset the domain name variable @@ -140,8 +140,8 @@ class authentication { } //get the domain name from the http value - if (strlen(check_str($_REQUEST["domain_name"])) > 0) { - $this->domain_name = check_str($_REQUEST["domain_name"]); + if (strlen($_REQUEST["domain_name"]) > 0) { + $this->domain_name = $_REQUEST["domain_name"]; } //remote port number from the domain name