From 6784b44e98b4a947374a495037d40e334a34971d Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 29 Jan 2011 23:28:20 +0000 Subject: supporting 'javascript:' when normalizing urls git-svn-id: http://code.elgg.org/elgg/trunk@7956 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/output.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/lib') 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; -- cgit v1.2.3