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

Dmitry Dulepov dmitry at typo3.org
Wed Jan 24 11:24:23 CET 2007


Hi!

This is SVN patch request.

Branches: both

Problem: while updating ext_emconf.php on Windows, EM creates 
inconsistent file endings: part of the file has only \n, another part 
has \r\n. This prevents committing extension files to SVN.

Solution: use preg_replace() to remove \r.

Note: I also fixed uninitialized variables usage in that file. This is 
too trivial to supply as separate patch. Basically $absPath and 
$emConfFileName were defined inside "if" but were used also inside 
"else". I just moved them out of condition.

-- 
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.)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: em_bug_4846.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070124/4018658d/attachment.txt 


More information about the TYPO3-team-core mailing list