From 11e90d72c984fa9255e6fa659e28a357b438ea8f Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 17 Mar 2010 13:33:56 +0000 Subject: [PATCH] Fix: addslashes --- htdocs/includes/modules/import/import_csv.modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/modules/import/import_csv.modules.php b/htdocs/includes/modules/import/import_csv.modules.php index cee7b0ee9e3..d19e007baa3 100644 --- a/htdocs/includes/modules/import/import_csv.modules.php +++ b/htdocs/includes/modules/import/import_csv.modules.php @@ -1,6 +1,6 @@ - * Copyright (C) 2009 Regis Houssin + * Copyright (C) 2009-2010 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -330,7 +330,7 @@ class ImportCsv extends ModeleImports else if ($arrayrecord[($key-1)]['type'] > 0) { $newval=$arrayrecord[($key-1)]['val']; - $listvalues.="'".$arrayrecord[($key-1)]['val']."'"; + $listvalues.="'".addslashes($arrayrecord[($key-1)]['val'])."'"; } // Make some tests