aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-29 20:08:24 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-29 20:08:24 +0000
commit27e4f0a52a26ce099f6eaa8fad3b07af85193368 (patch)
tree94812b3f1bdcc4b42dd04f5262046ae0d5950f28 /include/functions.inc.php
parente68673166b5d677b92f4493ee1448fde7e352ea1 (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/trunk@1766 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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 8ff202335..42e54415c 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -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;
}