Skip to content

Commit

Permalink
Fix. Enqueue. Regex on webpath validate fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed Dec 26, 2024
1 parent 0bed380 commit e57f536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CleantalkSP/Common/Enqueue/Enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e57f536

Please sign in to comment.