有朋友反馈,采集规则编写时,需要对keywords进行剔除,使用
{dede:trim replace=''}(.*){/dede:trim}
过滤规则无效。查看了下,附上解决办法:
修改include/dedecollection.class.php,717行:
代码如下:
$keywords = preg_replace("#".$this->artNotes['keywordtrim']."#isU",'',$keywords);
为:
[code]
$keywords = preg_replace("/".$this->artNotes['keywordtrim']."/isU",'',$keywords);
[html]