Skip to content

Commit

Permalink
Merge pull request #11397 from atm-josselin/FIX_product_document_and_…
Browse files Browse the repository at this point in the history
…special_characters

FIX : filepath of generated documents doesn't handle products with sp…
  • Loading branch information
eldy committed Aug 27, 2019
2 parents 047298c + c24a95b commit 5550560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/product/class/product.class.php
Expand Up @@ -429,7 +429,7 @@ function create($user,$notrigger=0)
$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);
Expand Down

0 comments on commit 5550560

Please sign in to comment.