From 33413624e75cbccaaefd463e97b933c56e26a74b Mon Sep 17 00:00:00 2001 From: esensar Date: Wed, 1 Jun 2016 00:04:53 +0200 Subject: [PATCH] nope tests --- gori.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.'"'; }