[TYPO3-core] RFC: EM: inconsistent line ending while saving ext_emconf.php

Ingmar Schlecht ingmar at typo3.org
Wed Jan 24 14:27:07 CET 2007


Dmitry Dulepov wrote:
> Ingmar Schlecht wrote:
>> Dmitry Dulepov wrote:
>>> +        return preg_replace('/\r/', '', $code);
>>
>> Looks good, but wouldn't a simple str_replace() do just as well here?
> 
> May be... I just used to regular expressions, so automatically use them
> if I can... So it should be:
> 
> +        return str_replace(chr(13), '', $code);

I guess so, yes. But please test this before committing.

cheers
Ingmar


More information about the TYPO3-team-core mailing list