diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 47e8be9067c..50495d16a90 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -429,7 +429,7 @@ class Product extends CommonObject $error=0; // Clean parameters - $this->ref = dol_string_nospecial(trim($this->ref)); + $this->ref = dol_sanitizeFileName(dol_string_nospecial(trim($this->ref))); $this->label = trim($this->label); $this->price_ttc=price2num($this->price_ttc); $this->price=price2num($this->price);