Problem/Motivation
If you work with features and your developers have different environments (Win / *nix) the exported configuration might contain \r\n or \n as line break.
PHP_EOL always uses the system style of line breaks. So if someone exported the feature with Unix, which uses \n only, explode(PHP_EOL, $titles) won't work on Windows because it's looking for \r\n.
Proposed resolution
Simply split by \n - the time() will get rid of the \r.
Remaining tasks
Reviews needed.
User interface changes
none
API changes
none
| Comment | File | Size | Author |
|---|---|---|---|
| panels_breadcrumbs-do-not-use-PHP_EOL.patch | 810 bytes | das-peter |
Comments
Comment #1
Jorrit commentedThis is an excellent suggestion. One typo in the post:
trim()gets rid of the\r.Comment #2
IreneV commentedWill be added in next release
Comment #4
IreneV commentedComment #5
IreneV commented