aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/output.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/output.php b/engine/lib/output.php
index 862487b29..25fb23e3d 100644
--- a/engine/lib/output.php
+++ b/engine/lib/output.php
@@ -239,6 +239,11 @@ function elgg_normalize_url($url) {
return $url;
}
+ // 'javascript:'
+ elseif (stripos($url, 'javascript:') === 0) {
+ return $url;
+ }
+
// 'install.php', 'install.php?step=step'
elseif (preg_match("#^[^/]*\.php(\?.*)?$#i", $url)) {
return elgg_get_site_url().$url;