我遇到的情况是,页面获取的description中,包含有html标签,就会导致替换出错,css无法加载,也就无法支付的情况。
覆盖补丁中的文件即可。
修改内容:
//处理meta关键字过滤
if (strpos($log_content,'#zeyu#')!==false)
{
//下面这句是新增加的
$desc_log_content=strip_tags($desc_log_content);
$desc_log_content=preg_replace('/\[\#zeyu\#\](.*?)\[\/\#zeyu\#\]/uis',',以下文章内容被作者标识为需要付费后才能浏览',$log_content);
$site_description = extractHtmlData($desc_log_content, 90);
}
补丁下载地址: