[TYPO3-dev] A Bug in realurl 1.1.4 or a feature?
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon Jul 9 18:01:17 CEST 2007
Dmitry Dulepov schrieb:
> Hi!
>
> Taras Sajuk wrote:
>> in the class.tx_realurl_advanced.php on line 795 there is the "space
>> converter":
>>
>> $processedTitle = preg_replace('/[ -+_]+/', $space, $processedTitle);
>> // convert spaces
>>
>> unfortunately the '-' char in the expression is interpreted as range
>> operator. All '-' chars in the title don'get converted and are dropped
>> somewhere in one of the next statements.
>> The line should be:
>>
>> $processedTitle = preg_replace('/[ \-+_]+/', $space, $processedTitle);
>> // convert spaces
AFAIK you may use - at the end of a class as a literal :
-
$processedTitle = preg_replace('/[ +_-]+/', $space, $processedTitle);
Masi
More information about the TYPO3-dev
mailing list