[TYPO3-dev] problem with utf8filesystem = 1

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sat May 19 20:02:40 CEST 2007


Gideon So schrieb:
> Hi Martin,
> 
> 	No. I am not. The result: PHP Warning:  preg_replace(): No ending
> delimiter '/' found in Command line code on line 1

Odd, worked for me on the command line.

>>
>> php -r 'echo preg_replace(
>>  "/[\x00-\x2C\/\x3A-\x3F\x5B-\x60\x7B-\xBF]/u",
>>  "_",
>>  "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ.txt"),"\n";'

Try and remove \x7B-\xBF from the regexp in the file
class.t3lib_basicfilefunc.php, function cleanFileName().

Any difference?

Masi




More information about the TYPO3-dev mailing list