#109829 by doq: do not trim URLs is the added ellipses would result in a longer link title then the original URL itself
parent
67e5859a7f
commit
ab952ffb4d
|
@ -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) .'...';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue