diff options
-rw-r--r-- | lib/util.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 4f93d572e..364e9e79c 100644 --- a/lib/util.php +++ b/lib/util.php @@ -749,7 +749,8 @@ function common_render_uri_thingy($matches) { function common_shorten_links($text) { $r = htmlspecialchars($text); - $r = preg_replace('@https?://[^)\]>\s]+@e', "common_shorten_link('\\0')", $r); + // \s = not a horizontal whitespace character (since PHP 5.2.4) + $r = preg_replace('@[^*]https?://[^)\]>\s]+@e', "common_shorten_link('\\0')", $r); return $r; } |