AntonLV 8 ani în urmă
părinte
comite
700caeb10f
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      template/scripts/BxBaseCmts.php

+ 2 - 1
template/scripts/BxBaseCmts.php

@@ -641,7 +641,8 @@ class BxBaseCmts extends BxDolCmts
             unset($oForm->aInputs['cmt_image']);
             unset($oForm->aInputs['cmt_image']);
 
 
         if(isset($oForm->aInputs['cmt_text'])) {
         if(isset($oForm->aInputs['cmt_text'])) {
-            $oForm->aInputs['cmt_text']['html'] = $this->_aSystem['html']; 
+            $oForm->aInputs['cmt_text']['html'] = $this->_aSystem['html'];
+            $oForm->aInputs['cmt_text']['db']['pass'] = $this->isHtml() ? 'XssHtml' : 'XssMultiline';
 
 
             $iCmtTextMin = (int)$this->_aSystem['chars_post_min'];
             $iCmtTextMin = (int)$this->_aSystem['chars_post_min'];
             $iCmtTextMax = (int)$this->_aSystem['chars_post_max'];
             $iCmtTextMax = (int)$this->_aSystem['chars_post_max'];