#109829 by doq: do not trim URLs is the added ellipses would result in a longer link title then the original URL itself

6.x
Gábor Hojtsy 2007-09-06 12:40:47 +00:00
parent 67e5859a7f
commit ab952ffb4d
1 changed files with 2 additions and 1 deletions

View File

@ -1209,7 +1209,8 @@ function _filter_url_trim($text, $length = NULL) {
$_length = $length;
}
if (strlen($text) > $_length) {
// Use +3 for '...' string length.
if (strlen($text) > $_length + 3) {
$text = substr($text, 0, $_length) .'...';
}