From 62c37b12cc3e8765ec1e2cf83812930ac74de00a Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 20 Jun 2024 18:53:40 +0800 Subject: [PATCH] * [misc] adjust encrypted check logic. --- framework/base/router.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 365e9bde0f..4cdf2a70ee 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1687,7 +1687,7 @@ class baseRouter /* Check file is encode by ioncube. */ $isEncrypted = false; - if(str_contains($file2Included, 'extension' . DS . $this->config->edition . DS)) + if(preg_match('/extension\\' . DS . '(custom|xuan|biz|max|ipd|or)\\' . DS . '/', $file2Included)) { $fp = fopen($file2Included, 'r'); $line1 = fgets($fp);