diff --git a/htdocs/imports/import.class.php b/htdocs/imports/import.class.php
index 2337c44dcd5..28752193ddd 100644
--- a/htdocs/imports/import.class.php
+++ b/htdocs/imports/import.class.php
@@ -215,7 +215,7 @@ class Import
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'import_model (';
$sql.= 'label, type, field)';
- $sql.= " VALUES ('".$this->model_name."', '".$this->datatoimport."', '".$this->hexa."')";
+ $sql.= " VALUES ('".addslashes($this->model_name)."', '".$this->datatoimport."', '".$this->hexa."')";
dol_syslog("Import::create sql=".$sql, LOG_DEBUG);
$resql=$this->db->query($sql);
diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php
index 767258e62a7..3fd2ce94edb 100644
--- a/htdocs/imports/import.php
+++ b/htdocs/imports/import.php
@@ -968,6 +968,7 @@ if ($step == 4 && $datatoimport)
print '';
print '';
print '';
+ print '';
print '';
print '';
print '';