diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-02 00:18:16 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-02 00:18:16 +0000 |
commit | 82340d74da77b43ef197a05b1502465e8d111243 (patch) | |
tree | 1398bdd25a54526323643c86057e2c9f35f765a9 /engine/lib/output.php | |
parent | 2b8576e4b2b6b8e80c64f165d088be50d393748f (diff) | |
download | elgg-82340d74da77b43ef197a05b1502465e8d111243.tar.gz elgg-82340d74da77b43ef197a05b1502465e8d111243.tar.bz2 |
elgg_normalize_url leaves #target and ?query urls alone
git-svn-id: http://code.elgg.org/elgg/trunk@8556 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/output.php')
-rw-r--r-- | engine/lib/output.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |