master
esensar 2016-06-01 00:02:30 +02:00
parent 846b120b34
commit 7c656f32e0
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
if(isset($_POST['vijest'])) {
$vijestiFile = file_get_contents($openShiftFolder."vijesti.csv");
$vijest = $_POST['vijest'];
if(strpos($vijest, ',') !== FALSE || strpos($vijest, '\n') !== FALSE) {
if(strpos($vijest, ',') !== FALSE || strpos($vijest, "\n") !== FALSE) {
$vijest = str_replace('"', '""', $vijest);
$vijest = '"'.$vijest.'"';
}