diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-06 12:40:47 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-06 12:40:47 +0000 |
commit | ab952ffb4d02a7597afbb154eda40e1b9f4ef3c7 (patch) | |
tree | 3e8dd60159fc5958a37b07215696a47904b92dfb | |
parent | 67e5859a7f2574b9217b484dbcb227194dfe3940 (diff) | |
download | brdo-ab952ffb4d02a7597afbb154eda40e1b9f4ef3c7.tar.gz brdo-ab952ffb4d02a7597afbb154eda40e1b9f4ef3c7.tar.bz2 |
#109829 by doq: do not trim URLs is the added ellipses would result in a longer link title then the original URL itself
-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) .'...'; } |