AntonLV 8 лет назад
Родитель
Сommit
700caeb10f
1 измененных файлов с 2 добавлено и 1 удалено
  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']);
 
         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'];
             $iCmtTextMax = (int)$this->_aSystem['chars_post_max'];