--- tslib/$/class.tslib_fe.php Mon May 23 02:41:24 2005 +++ tslib/class.tslib_fe.php Sun Sep 04 21:18:13 2005 @@ -3104,11 +3104,11 @@ * @param string Character to put in the end of string to merge it with the next value. * @return string String */ function fileNameASCIIPrefix($inTitle,$titleChars,$mergeChar='.') { $out = $this->csConvObj->specCharsToASCII($this->renderCharset, $inTitle); - $out = ereg_replace('[^[:alnum:]_-]','_',trim(substr($out,0,$titleChars))); + $out = ereg_replace('[^[:alnum:]_-]','-',trim(substr($out,0,$titleChars))); $out = ereg_replace('[_-]*$','',$out); $out = ereg_replace('^[_-]*','',$out); $out = ereg_replace('([_-])[_-]*','\1',$out); if (strlen($out)) $out.=$mergeChar;