* [misc] adjust encrypted check logic.

This commit is contained in:
caoyanyi
2024-06-20 19:08:01 +08:00
committed by 田淑杰
parent 4ccc22f341
commit 62c37b12cc
+1 -1
View File
@@ -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);