Skip to content

Commit

Permalink
bug 623: Char "+" is not supported in gallery URL (the function url_i…
Browse files Browse the repository at this point in the history
…s_remote

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

git-svn-id: http://piwigo.org/svn/trunk@1766 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rvelices committed Jan 29, 2007
1 parent e686731 commit 27e4f0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/functions.inc.php
Expand Up @@ -726,7 +726,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;
}
Expand Down

0 comments on commit 27e4f0a

Please sign in to comment.