diff --git a/include/class_acc_ledger_sold.php b/include/class_acc_ledger_sold.php index 3c9bd3607..7bf3e3ac1 100644 --- a/include/class_acc_ledger_sold.php +++ b/include/class_acc_ledger_sold.php @@ -959,7 +959,7 @@ class Acc_Ledger_Sold extends Acc_Ledger { $doc_gen=new widget("select"); $doc_gen->name="gen_doc"; $doc_gen->value=make_array($this->db, - "select md_id,html_quote(md_name) ". + "select md_id,md_name ". " from document_modele where md_type=4"); $r.=$doc_gen->IOValue().''; } diff --git a/include/class_pre_operation.php b/include/class_pre_operation.php index 1c4425c69..9508c4d60 100644 --- a/include/class_pre_operation.php +++ b/include/class_pre_operation.php @@ -117,7 +117,7 @@ class Pre_operation function show_button() { $select=new widget("select"); - $value=make_array($this->db,"select od_id,html_quote(od_name) from op_predef ". + $value=make_array($this->db,"select od_id,od_name from op_predef ". " where jrn_def_id=".$this->p_jrn. " and od_direct ='".$this->od_direct."'". " order by od_name"); @@ -206,7 +206,7 @@ class Pre_operation_detail { return $r; } public function get_operation() { - $value=make_array($this->db,"select od_id,html_quote(od_name) from op_predef ". + $value=make_array($this->db,"select od_id,od_name from op_predef ". " where jrn_def_id=".FormatString($this->jrn_def_id). " and od_direct ='".FormatString($this->od_direct)."'". " order by od_name"); diff --git a/include/class_widget.php b/include/class_widget.php index 6d773e359..6cd0fca61 100644 --- a/include/class_widget.php +++ b/include/class_widget.php @@ -162,7 +162,7 @@ class widget { { $checked=($this->selected==$this->value[$i]['value'])?"SELECTED":""; $r.=''; - $r.=$this->value[$i]['label']; + $r.=h($this->value[$i]['label']); } $r.=""; } @@ -175,7 +175,7 @@ class widget { echo_debug('class_widget.php',__LINE__,"check for ".$this->value[$i]['value']); if ($this->selected==$this->value[$i]['value'] ) { - $r=$this->value[$i]['label']; + $r=h($this->value[$i]['label']); } } @@ -252,7 +252,7 @@ class widget { $r.=""; } else { $r=''; - $r.=$this->value; + $r.=h($this->value); $r.=sprintf('', $this->name,urlencode($this->value)); $r.=''; diff --git a/include/jrn.php b/include/jrn.php index ee7898888..1a6e652d9 100644 --- a/include/jrn.php +++ b/include/jrn.php @@ -122,9 +122,9 @@ function ShowOperationExpert($p_cn,$p_jr_id,$p_mode=1) if ( $content['j_debit'] == 't' ) $r.=$col_vide; $qc=($content['j_qcode'] != "")?" [".$content['j_qcode']."]":""; if ( $content['j_text'] == '') - $r.="".$qc.$content['vw_name'].""; + $r.="".$qc.h($content['vw_name']).""; else - $r.="".$qc.$content['j_text'].""; + $r.="".$qc.h($content['j_text']).""; if ( $content['j_debit'] == 'f' ) $r.=$col_vide; $r.="".$content['j_montant'].""; if ( $content['j_debit'] == 't' ) $r.=$col_vide;
'; - $r.=$this->value; + $r.=h($this->value); $r.=sprintf('', $this->name,urlencode($this->value)); $r.='