[TYPO3-dev] A Bug in realurl 1.1.4 or a feature?

Dmitry Dulepov dmitry at typo3.org
Mon Jul 9 15:41:52 CEST 2007


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
> 
> Maybe it's an hint to use an own advanced class. bg.

A bug. Thanks for the tip!

-- 
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs




More information about the TYPO3-dev mailing list