标签 评论 下的文章

SeaCMS评论区网址屏蔽

编辑 /comment/js/base.js 文件第424行,将

htmlstr.push(tmp1.content.replace(/\[em:(\d+):]/gi,"<img src=\"images/cmt/$1.gif\" />").replace(/[\r\n]{1,2}/gi,"<br />"));

替换为:

htmlstr.push(tmp1.content.replace(/[a-zA-Z]{3,}|\/|\./g,"*").replace(/\[em:(\d+):]/gi,"<img src=\"images/cmt/$1.gif\" />").replace(/[\r\n]{1,2}/gi,"<br />"));