- wups, one escaping too much :p
This commit is contained in:
@@ -39,7 +39,7 @@ function validateUrl($url)
|
|||||||
// needs converting
|
// needs converting
|
||||||
$url = $idna_convert->encode($url);
|
$url = $idna_convert->encode($url);
|
||||||
|
|
||||||
$pattern = "/^https?\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?$/i";
|
$pattern = "/^https?:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?$/i";
|
||||||
if(preg_match($pattern, $url))
|
if(preg_match($pattern, $url))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user