Ver código fonte

Update filter.inc.php

tags/6.5.8
tianya 1 semana atrás
pai
commit
0321cd7fd7
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/system/filter.inc.php

+ 1
- 1
src/system/filter.inc.php Ver arquivo

@@ -25,7 +25,7 @@ function _FilterAll($fk, &$svar)
$svar[$_k] = _FilterAll($fk, $_v); $svar[$_k] = _FilterAll($fk, $_v);
} }
} else { } else {
if (preg_match("#".$cfg_notallowstr."#i", $svar)) {
if ($cfg_notallowstr != '' && preg_match("#".$cfg_notallowstr."#i", $svar)) {
ShowMsg("{$fk}字段中包含禁用词", '-1'); ShowMsg("{$fk}字段中包含禁用词", '-1');
exit(); exit();
} }


Carregando…
Cancelar
Salvar