首页 话题 小组 问答 好文 用户 我的社区 域名交易 唠叨

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

发布于 2025-05-25 19:01:52
0
188

在织梦的大括号标签判断中,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); }
评论
一个月内的热帖推荐
风轻y
Lv.1种子选手

427

帖子

23

小组

329

积分

赞助商广告
站长交流