bug 623: Char "+" is not supported in gallery URL (the function url_is_remote

should not check if the url is actually valid but only if it starts with http://)

git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1765 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices 2007-01-29 20:07:37 +00:00
parent 085f3badc0
commit 3d587429ed

View file

@ -626,7 +626,8 @@ function get_query_string_diff($rejects = array())
function url_is_remote($url)
{
if (preg_match('/^https?:\/\/[~\/\.\w-]+$/', $url))
if ( strncmp($url, 'http://', 7)==0
or strncmp($url, 'https://', 8)==0 )
{
return true;
}