aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-29 23:28:20 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-29 23:28:20 +0000
commit6784b44e98b4a947374a495037d40e334a34971d (patch)
tree03cb699d76240e63d18a44db2678b78cf57bce84 /engine/lib
parent8a737ecfac2745950228adbfe220cd8ca673649b (diff)
downloadelgg-6784b44e98b4a947374a495037d40e334a34971d.tar.gz
elgg-6784b44e98b4a947374a495037d40e334a34971d.tar.bz2
supporting 'javascript:' when normalizing urls
git-svn-id: http://code.elgg.org/elgg/trunk@7956 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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;