当前位置:首页 > 织梦 > 关键词 > Array > 正文

织梦dede标签array runphp静态生成乱码BUG解决方法

温馨提示:DedeCMS用户请及时前往织梦官网处理官方版权事宜。
织梦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);
}

本文属原创,转载请注明原文:https://www.zhimatong.com/jiaocheng/175.html

为保证教程的实用性及扩大知识面覆盖,如果您有相似问题而未解决,可联系在线客服免费技术支持。

内容有用

联系
顾问

在线
客服
账号登录

没有账号?立即注册

忘记密码

登录即同意用户协议没有账号? 立即注册
账号注册
我已阅读并同意用户协议
立即注册
注册即同意用户协议已有账号? 立即登录
找回密码

操作步骤:邮箱验证->设置新密码

注册即同意用户协议已有账号? 立即登录