From: Alan Date: Thu, 2 Mar 2023 03:55:26 +0000 (+0800) Subject: fix regex X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=1a84c22c46d7756b0b67ffcb624db37b81739683 fix regex --- diff --git a/Pman/Login.php b/Pman/Login.php index 1378c87..f759770 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -81,7 +81,7 @@ class Pman_Login extends Pman if (!empty($_REQUEST['loginPublic'])) { $this->switchPublicUser($_REQUEST['loginPublic']); } - if (!empty($_SERVER['HTTP_USER_AGENT']) && preg_match('/^check_http.', $_SERVER['HTTP_USER_AGENT'])) { + if (!empty($_SERVER['HTTP_USER_AGENT']) && preg_match('/^check_http/', $_SERVER['HTTP_USER_AGENT'])) { die("server is alive"); } $this->jerr("INVALID REQUEST");