aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-29 20:07:37 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-29 20:07:37 +0000
commit3d587429ed894f302d080992fe42114d1d3e3488 (patch)
tree035300a80b91783d686e88e25478be6520b6a5bc
parent085f3badc087cfe5cf41e5dbff4b914bb02285c0 (diff)
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
-rw-r--r--include/functions.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 9476306d9..0f43506f9 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -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;
}