aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorJeff Tilson <jrtilson@gmail.com>2013-04-29 13:38:42 -0400
committerJeff Tilson <jrtilson@gmail.com>2013-04-29 13:38:42 -0400
commitcd7922c58f3f2d04b8ca4bcf336ecda2787c821e (patch)
treed28191d8dd17fce4d307a290c1c2cf1168a98d1d /engine/lib
parent11c8b773274e3e7217eb7e842448ceb592541c63 (diff)
downloadelgg-cd7922c58f3f2d04b8ca4bcf336ecda2787c821e.tar.gz
elgg-cd7922c58f3f2d04b8ca4bcf336ecda2787c821e.tar.bz2
Fixes #2057 (broken internet archive links)
Diffstat (limited to 'engine/lib')
-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 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',
'