diff options
-rw-r--r-- | modules/filter/filter.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 445def4e7..c3d07c661 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -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) .'...'; } |