diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-02 00:21:39 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-02 00:21:39 +0000 |
commit | 9171a67f12c51c365a15b7047a3b5f4b7737d21a (patch) | |
tree | 44e46b0534f690621c64864c88ed9f136a8fc0f1 /engine/lib | |
parent | 82340d74da77b43ef197a05b1502465e8d111243 (diff) | |
download | elgg-9171a67f12c51c365a15b7047a3b5f4b7737d21a.tar.gz elgg-9171a67f12c51c365a15b7047a3b5f4b7737d21a.tar.bz2 |
Added comment explaining purpose of regex
git-svn-id: http://code.elgg.org/elgg/trunk@8557 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/output.php | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |