View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011485 | mantisbt | bugtracker | public | 2010-02-09 22:51 | 2010-02-22 14:34 |
Reporter | dhx | Assigned To | dhx | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0 | ||||
Target Version | 1.2.0 | Fixed in Version | 1.2.0 | ||
Summary | 0011485: string_shorten function doesn't trim long strings which don't contain word boundaries | ||||
Description | The string_shorten function tries to find suitable word boundaries upon which the string can be truncated. If the string is over the maximum allowed length and no word boundaries are found, the function doesn't bother truncating the only word found in the string. Thus dropdowns could contain very long single word strings such as 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...etc' with the maximum dropdown width setting having no effect. | ||||
Tags | No tags attached. | ||||
MantisBT: master-1.2.x fd63b966 2010-02-09 22:46 Details Diff |
Fix 0011485: string_shorten doesn't trim long strings without boundaries The string_shorten function tries to find suitable word boundaries upon which the string can be truncated. If the string is over the maximum allowed length and no word boundaries are found, the function doesn't bother truncating the only word found in the string. Thus dropdowns could contain very long single word strings such as 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...etc' with the maximum dropdown width setting having no effect. |
Affected Issues 0011485 |
|
mod - core/string_api.php | Diff File | ||
MantisBT: master c1bfeff2 2010-02-09 22:46 Details Diff |
Fix 0011485: string_shorten doesn't trim long strings without boundaries The string_shorten function tries to find suitable word boundaries upon which the string can be truncated. If the string is over the maximum allowed length and no word boundaries are found, the function doesn't bother truncating the only word found in the string. Thus dropdowns could contain very long single word strings such as 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...etc' with the maximum dropdown width setting having no effect. |
Affected Issues 0011485 |
|
mod - core/string_api.php | Diff File |