From 82340d74da77b43ef197a05b1502465e8d111243 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 2 Mar 2011 00:18:16 +0000 Subject: elgg_normalize_url leaves #target and ?query urls alone git-svn-id: http://code.elgg.org/elgg/trunk@8556 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/lib/output.php b/engine/lib/output.php index ee4ed1721..aeaa7e5a8 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -235,7 +235,7 @@ function elgg_clean_vars(array $vars = array()) { */ function elgg_normalize_url($url) { // 'http://example.com', 'https://example.com', '//example.com' - if (preg_match("#^(https?:)?//#i", $url)) { + if (preg_match("#^(\#|\?|(https?:)?//)#i", $url)) { return $url; } -- cgit v1.2.3