View Issue Details

IDProjectCategoryView StatusLast Update
0011485mantisbtbugtrackerpublic2010-02-22 14:34
Reporterdhx Assigned Todhx  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0 
Target Version1.2.0Fixed in Version1.2.0 
Summary0011485: 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.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master-1.2.x fd63b966

2010-02-09 22:46

dhx


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

dhx


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