有朋友反饋,采集規(guī)則編寫時(shí),需要對keywords進(jìn)行剔除,使用
{dede:trim replace=''}(.*){/dede:trim}
過濾規(guī)則無效。查看了下,附上解決辦法:
修改include/dedecollection.class.php,717行:
代碼如下:
$keywords = preg_replace("#".$this->artNotes['keywordtrim']."#isU",'',$keywords);
為:
[code]
$keywords = preg_replace("/".$this->artNotes['keywordtrim']."/isU",'',$keywords);
[html]