From 3d587429ed894f302d080992fe42114d1d3e3488 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 29 Jan 2007 20:07:37 +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/branches/branch-1_6@1765 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3