diff options
author | Steve Clay <steve@mrclay.org> | 2013-05-13 22:40:46 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2013-05-13 22:40:46 -0400 |
commit | 8a5d4dad56dab0467415c189e8632ef151b0bcc5 (patch) | |
tree | 2dd6aadc4cf2d67789a3b484950b4bfb0e91a778 /engine/lib/output.php | |
parent | d6166b326ea6f25c477e2f47e9e8aef6a2af2597 (diff) | |
parent | 6fed48c68bd866149427c63782d5ce4db6ba80c4 (diff) | |
download | elgg-8a5d4dad56dab0467415c189e8632ef151b0bcc5.tar.gz elgg-8a5d4dad56dab0467415c189e8632ef151b0bcc5.tar.bz2 |
Merge branch 'pr5416' into 1.8
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 6905b9b71..5adc01053 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -27,7 +27,7 @@ function parse_urls($text) { // By default htmlawed rewrites tags to this format. // if PHP supported conditional negative lookbehinds we could use this: // $r = preg_replace_callback('/(?<!=)(?<![ ])?(?<!["\'])((ht|f)tps?:\/\/[^\s\r\n\t<>"\'\!\(\),]+)/i', - $r = preg_replace_callback('/(?<!=)(?<!["\'])((ht|f)tps?:\/\/[^\s\r\n\t<>"\'\(\)]+)/i', + $r = preg_replace_callback('/(?<![=\/"\'])((ht|f)tps?:\/\/[^\s\r\n\t<>"\'\(\)]+)/i', create_function( '$matches', ' |