Permalink
Browse files

Fixed crash on Unix due to endline characters

  • Loading branch information...
1 parent 12635a8 commit 57c78b540504b103798fd125a755de40bdd6c009 @jaxoncreed jaxoncreed committed Oct 7, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 controller/site/adminUtilities.process.php
@@ -119,6 +119,9 @@
$json = array( 'error' => 'Your uploaded file must be a CSV file' );
exit(json_encode($json));
}
+
+ //Change the ability to detect line endings when reading the file
+ ini_set("auto_detect_line_endings", true);
//CSV files should be in the format:
//Title(Required);Instruction (Required);Number Of People Needed (Optional);Deadline (Optional);Leader (Optional)

0 comments on commit 57c78b5

Please sign in to comment.