trac31 revert the "don't shorten URLs prefixed with a *" patch since we automatically shorten in notices > 140 chars
darcs-hash:20081107222100-099f7-18b3fc1c4e6939cdbc7a811a7df6f0e08068ea01.gz
This commit is contained in:
parent
9c3eb0d361
commit
2a8a0c9399
@ -750,7 +750,8 @@ function common_render_uri_thingy($matches) {
|
|||||||
function common_shorten_links($text) {
|
function common_shorten_links($text) {
|
||||||
$r = htmlspecialchars($text);
|
$r = htmlspecialchars($text);
|
||||||
// \s = not a horizontal whitespace character (since PHP 5.2.4)
|
// \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;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user