Update validate_criteria.isURL.php
This commit is contained in:
parent
0cc37bd047
commit
09b985d9ef
@ -38,7 +38,7 @@ function smarty_validate_criteria_isURL($value, $empty, &$params, &$formvars) {
|
|||||||
if (empty($value))
|
if (empty($value))
|
||||||
return $empty;
|
return $empty;
|
||||||
|
|
||||||
if(strlen($value) == 0)
|
if (strlen($value) == 0)
|
||||||
return $empty;
|
return $empty;
|
||||||
|
|
||||||
return preg_match('!^http(s)?://[\w-]+\.[\w-]+(\S+)?$!i', $value)
|
return preg_match('!^http(s)?://[\w-]+\.[\w-]+(\S+)?$!i', $value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user