From 5e98a66aeb108b84ca4f2ae824c0a191fbd514cd Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 7 Nov 2017 10:51:15 -0800 Subject: Make sure we can read file with "\r" line endings --- app/check_setup.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/check_setup.php') diff --git a/app/check_setup.php b/app/check_setup.php index d962a6f8..314c9786 100644 --- a/app/check_setup.php +++ b/app/check_setup.php @@ -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); +} -- cgit v1.2.3