mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
Merge branch '2.8'
This commit is contained in:
@@ -2073,6 +2073,16 @@ function mobile_theme()
|
||||
*/
|
||||
function url_check_format($url)
|
||||
{
|
||||
if (strpos($url, '"') !== false)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (strncmp($url, 'http://', 7) !== 0 and strncmp($url, 'https://', 8) !== 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return filter_var($url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED)!==false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user