Skip to content
Snippets Groups Projects
Commit ab952ffb authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#109829 by doq: do not trim URLs is the added ellipses would result in a...

#109829 by doq: do not trim URLs is the added ellipses would result in a longer link title then the original URL itself
parent 67e5859a
No related branches found
No related tags found
No related merge requests found
......@@ -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) .'...';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment