diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-11-07 10:51:15 -0800 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-11-07 10:51:15 -0800 |
commit | 5e98a66aeb108b84ca4f2ae824c0a191fbd514cd (patch) | |
tree | 888940112a8092c8d2684d7f42081a7733d62610 /app/check_setup.php | |
parent | 49c2b5996df431c5082669c4227c149c9ce8e65e (diff) |
Make sure we can read file with "\r" line endings
Diffstat (limited to 'app/check_setup.php')
-rw-r--r-- | app/check_setup.php | 5 |
1 files changed, 5 insertions, 0 deletions
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); +} |