aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 511da391a..28be6dd2a 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -533,6 +533,15 @@ function get_query_string_diff($rejects = array())
return $query_string;
}
+function url_is_remote($url)
+{
+ if (preg_match('/^https?:\/\/[~\/\.\w-]+$/', $url))
+ {
+ return true;
+ }
+ return false;
+}
+
/**
* returns available templates/themes
*/