mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-06 08:05:51 +03:00
fixes #1606 filter_var, remove deprecated constants. Requires PHP 5.2+
This commit is contained in:
parent
9cb12b4425
commit
72d3940a40
1 changed files with 1 additions and 1 deletions
|
@ -2194,7 +2194,7 @@ function url_check_format($url)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED)!==false;
|
return filter_var($url, FILTER_VALIDATE_URL)!==false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue