summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/check_setup.php5
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);
+}