[TYPO3-core] RFC: EM: inconsistent line ending while saving ext_emconf.php
Dmitry Dulepov
dmitry at typo3.org
Wed Jan 24 15:13:21 CET 2007
Hi!
Michael Stucki wrote:
>>> Looks good, but wouldn't a simple str_replace() do just as well here?
>
> I agree.
Done.
>> + return str_replace(chr(13), '', $code);
>>
>> Right?
>
> As long as you are using double quotes, it will still work with the backslash:
>
> + return str_replace("\r", '', $code);
Yeah, I know but we do not use double quotes in the core :D So I tested
and committed with chr(13).
--
Dmitry Dulepov
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-team-core
mailing list