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