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:
parent
085f3badc0
commit
3d587429ed
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue