diff --git a/gori.php b/gori.php index 436fd9a..bfa7005 100644 --- a/gori.php +++ b/gori.php @@ -15,7 +15,8 @@ if(isset($_POST['vijest'])) { $vijestiFile = file_get_contents($openShiftFolder."vijesti.csv"); $vijest = $_POST['vijest']; - if(strpos($vijest, ',') !== FALSE || strpos($vijest, "\n") !== FALSE) { + $vijest = str_replace("\n", "
", $vijest); + if(strpos($vijest, ',') !== FALSE) { $vijest = str_replace('"', '""', $vijest); $vijest = '"'.$vijest.'"'; }