aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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;
}