]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Forgot to replace URL shortening regex with new function.
authorSean Murphy <sgmurphy@gmail.com>
Thu, 5 Feb 2009 04:18:45 +0000 (23:18 -0500)
committerSean Murphy <sgmurphy@gmail.com>
Thu, 5 Feb 2009 04:18:45 +0000 (23:18 -0500)
lib/util.php

index 92dca1194cac5785b457a8ebc35896d995603ac2..87c239d5d9ceac16493c488491f893788ec2e943 100644 (file)
@@ -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)