correction des bugs soumis sur le forum

http://forum.dolibarr.com/viewtopic.php?t=51
http://forum.dolibarr.com/viewtopic.php?t=54
This commit is contained in:
opensides 2005-02-04 22:40:38 +00:00
parent 3a7242c701
commit 9a496247ba
2 changed files with 6 additions and 4 deletions

View File

@ -154,8 +154,10 @@ function facture_meta_create($db, $facid, $message="")
if ($conf->facture->dir_output) if ($conf->facture->dir_output)
{ {
$dir = $conf->facture->dir_output . "/" . $fac->ref ; $forbidden_chars=array("/","\\",":","*","?","\"","<",">","|","[","]",",",";","=");
$file = $dir . "/" . $fac->ref . ".meta"; $facref = str_replace($forbidden_chars,"_",$fac->ref);
$dir = $conf->facture->dir_output . "/" . $facref ;
$file = $dir . "/" . $facref . ".meta";
if (! file_exists($dir)) if (! file_exists($dir))
{ {

View File

@ -382,7 +382,7 @@ class Propal
$this->total_ttc = $obj->total; $this->total_ttc = $obj->total;
$this->socidp = $obj->fk_soc; $this->socidp = $obj->fk_soc;
$this->soc_id = $obj->fk_soc; $this->soc_id = $obj->fk_soc;
$this->projet_id = $obj->fk_projet; $this->projetidp = $obj->fk_projet;
$this->contactid = $obj->fk_soc_contact; $this->contactid = $obj->fk_soc_contact;
$this->modelpdf = $obj->model_pdf; $this->modelpdf = $obj->model_pdf;
$this->note = $obj->note; $this->note = $obj->note;