Index: trunk/core/units/general/cat_dbitem.php =================================================================== diff -u -r3150 -r3162 --- trunk/core/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 3150) +++ trunk/core/units/general/cat_dbitem.php (.../cat_dbitem.php) (revision 3162) @@ -202,8 +202,15 @@ function stripDisallowed($string) { $not_allowed = Array(' ', '\\', '/', ':', '*', '?', '"', '<', '>', '|'); - $string = str_replace($not_allowed, '_', $string); - return preg_replace('/(_+)/', '_', $string); + $string = str_replace($not_allowed, '_', $string); + $string = preg_replace('/(_+)/', '_', $string); + + while( preg_match('/(.*)_([\d]+)$/', $string, $rets) ) + { + $string = $rets[1]; + } + + return $string; } /**