From 27e4f0a52a26ce099f6eaa8fad3b07af85193368 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 29 Jan 2007 20:08:24 +0000 Subject: 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 --- include/functions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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; } -- cgit v1.2.3