]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trac31 revert the "don't shorten URLs prefixed with a *" patch since we automatically...
authormillette <millette@controlyourself.ca>
Fri, 7 Nov 2008 22:21:00 +0000 (17:21 -0500)
committermillette <millette@controlyourself.ca>
Fri, 7 Nov 2008 22:21:00 +0000 (17:21 -0500)
darcs-hash:20081107222100-099f7-18b3fc1c4e6939cdbc7a811a7df6f0e08068ea01.gz

lib/util.php

index 364e9e79cd97f370ddb2e98a5b07243e2817046f..14311a71d63b3dd431932c103b6af508db958f80 100644 (file)
@@ -750,7 +750,8 @@ function common_render_uri_thingy($matches) {
 function common_shorten_links($text) {
        $r = htmlspecialchars($text);
     // \s = not a horizontal whitespace character (since PHP 5.2.4)
-       $r = preg_replace('@[^*]https?://[^)\]>\s]+@e', "common_shorten_link('\\0')", $r);
+//     $r = preg_replace('@[^*]https?://[^)\]>\s]+@e', "common_shorten_link('\\0')", $r);
+       $r = preg_replace('@https?://[^)\]>\s]+@e', "common_shorten_link('\\0')", $r);
        return $r;
 }