aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/output.php2
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;
}