소스 검색

Use empty function for the request username and key

FusionPBX 2 년 전
부모
커밋
758d672404
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/authentication/resources/classes/plugins/database.php

+ 1 - 1
core/authentication/resources/classes/plugins/database.php

@@ -40,7 +40,7 @@ class plugin_database {
 			}
 
 		//show the authentication code view
-			if ($_REQUEST["username"] == '' && $_REQUEST["key"] == '') {
+			if (empty($_REQUEST["username"]) && empty($_REQUEST["key"])) {
 
 				//login logo source
 					if (isset($_SESSION['theme']['logo_login']['text']) && $_SESSION['theme']['logo_login']['text'] != '') {