请问织梦dedecms提示“xx has not allow words”的解决办法
- 明确提示非法文字
- 编辑
include/filter.inc.php
文件,找到:
修改为:if($cfg_notallowstr != "" && eregi($cfg_notallowstr, $svar)) {
if($cfg_notallowstr != "" && eregi($cfg_notallowstr, $svar)) { preg_match_all("@{$cfg_notallowstr}@", $svar, $me); $me = array_unique($me[0]); $notallowkeys = ""; foreach($me as $v) { $notallowkeys .= $v . ', '; } $msg = '您发布的内容中带有不被允许的文字 :' . $notallowkeys; ShowMsg($msg, '-1'); exit(); }
- 编辑
这些方法可以帮助你解决织梦DedeCMS中的一些常见问题。
更新时间:2025-04-11 01:07:40
下一篇:请问服务器被入侵后的防护措施
转载请注明原文链接:https://www.muzicopy.com/suibi/7242.html