织梦dede标签array runphp静态生成乱码BUG解决方法
温馨提示:DedeCMS用户请及时前往织梦官网处理官方版权事宜。
织梦dede标签array runphp静态生成乱码BUG解决方法
织梦dede标签array runphp静态生成乱码BUG解决方法
在织梦的大括号标签判断中,name=array runphp 生成静态时,会出现只获取一个字节的BUG,如
{dede:field name=array [email protected] */" _ue_custom_node_="true">= (@me['seotitle'] != '' ? "[email protected] */" _ue_custom_node_="true">['seotitle']}":"[email protected] */" _ue_custom_node_="true">['title']}");{/dede:field}
生成静态,栏目列表页第二页时出现中文乱码,因为它只输出一个字节
这是官方程序的一个BUG
解决方法
打开 /include/dedetag.class.php 找到 大概在 680 行
$phpcode = preg_replace("/'@me'|\"@me\"[email protected] */" _ue_custom_node_="true">/i", '$DedeMeValue', $phpcode);
改成
if(is_array($this->CTags[$i]->TagValue)) { $phpcode = preg_replace("/'@me'|\"@me\"[email protected] */" _ue_custom_node_="true">/i", '$DedeMeValue', $phpcode); }
本文属原创,转载请注明原文:http://www.zhimatong.com/jiaocheng/175.html
为保证教程的实用性及扩大知识面覆盖,如果您有相似问题而未解决,可联系在线客服免费技术支持。
内容有用