From: ewinslow Date: Wed, 2 Mar 2011 00:21:39 +0000 (+0000) Subject: Added comment explaining purpose of regex X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9171a67f12c51c365a15b7047a3b5f4b7737d21a;p=lorea%2Felgg.git Added comment explaining purpose of regex git-svn-id: http://code.elgg.org/elgg/trunk@8557 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/lib/output.php b/engine/lib/output.php index aeaa7e5a8..cba1ffae9 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -235,6 +235,7 @@ function elgg_clean_vars(array $vars = array()) { */ function elgg_normalize_url($url) { // 'http://example.com', 'https://example.com', '//example.com' + // '#target', '?query=string' if (preg_match("#^(\#|\?|(https?:)?//)#i", $url)) { return $url; }