From 09b985d9ef11473e460f335f0f94c24799614b1d Mon Sep 17 00:00:00 2001 From: Fraenkiman Date: Sat, 6 Jan 2024 16:58:02 +0100 Subject: [PATCH] Update validate_criteria.isURL.php --- fp-includes/fp-smartyplugins/validate_criteria.isURL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-includes/fp-smartyplugins/validate_criteria.isURL.php b/fp-includes/fp-smartyplugins/validate_criteria.isURL.php index 3b96690..54223d4 100644 --- a/fp-includes/fp-smartyplugins/validate_criteria.isURL.php +++ b/fp-includes/fp-smartyplugins/validate_criteria.isURL.php @@ -38,7 +38,7 @@ function smarty_validate_criteria_isURL($value, $empty, &$params, &$formvars) { if (empty($value)) return $empty; - if(strlen($value) == 0) + if (strlen($value) == 0) return $empty; return preg_match('!^http(s)?://[\w-]+\.[\w-]+(\S+)?$!i', $value)