Make sure we can read file with "\r" line endings

This commit is contained in:
Frederic Guillot 2017-11-07 10:51:15 -08:00
parent 49c2b5996d
commit 5e98a66aeb
1 changed files with 5 additions and 0 deletions

View File

@ -43,3 +43,8 @@ foreach (array('gd', 'mbstring', 'hash', 'openssl', 'json', 'hash', 'ctype', 'fi
if (ini_get('arg_separator.output') === '&') {
ini_set('arg_separator.output', '&');
}
// Make sure we can read files with "\r", "\r\n" and "\n"
if (ini_get('auto_detect_line_endings') != 1) {
ini_set("auto_detect_line_endings", 1);
}