diff options
author | Sean Murphy <sgmurphy@gmail.com> | 2009-02-04 23:18:45 -0500 |
---|---|---|
committer | Sean Murphy <sgmurphy@gmail.com> | 2009-02-04 23:18:45 -0500 |
commit | 4090471ebec98654931c8f7b369495d093739541 (patch) | |
tree | 00d5184ed9ee87911d2596fe1de619ec3678b12a | |
parent | 8053adc60e05c1154dc45a76e3d9b45d06422245 (diff) |
Forgot to replace URL shortening regex with new function.
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index 92dca1194..87c239d5d 100644 --- a/lib/util.php +++ b/lib/util.php @@ -488,7 +488,7 @@ function common_shorten_links($text) static $cache = array(); if (isset($cache[$text])) return $cache[$text]; // \s = not a horizontal whitespace character (since PHP 5.2.4) - return $cache[$text] = preg_replace('@https?://[^)\]>\s]+@e', "common_shorten_link('\\0')", $text); + return $cache[$text] = common_replace_urls_callback($text, 'common_shorten_link');; } function common_shorten_link($url, $reverse = false) |