From e57f5369599a86969b7786315b4502f3fd63f954 Mon Sep 17 00:00:00 2001 From: alexandergull Date: Thu, 26 Dec 2024 18:02:37 +0500 Subject: [PATCH] Fix. Enqueue. Regex on webpath validate fixed. --- lib/CleantalkSP/Common/Enqueue/Enqueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CleantalkSP/Common/Enqueue/Enqueue.php b/lib/CleantalkSP/Common/Enqueue/Enqueue.php index a04e8b04..3f07959e 100644 --- a/lib/CleantalkSP/Common/Enqueue/Enqueue.php +++ b/lib/CleantalkSP/Common/Enqueue/Enqueue.php @@ -270,7 +270,7 @@ private function getFreshVersion($work_script_name) */ private function validateWebPath($path) { - if (! preg_match('/^http?:\/\//', $path)) { + if (! preg_match('/^https?:\/\//', $path)) { $this->errorLog(__('Web path for script is invalid: ' . $path, 'security-malware-firewall')); return $path; }