问题描述:在后台,全局,站点信息添加统计代码时,代码会自动变成
原因分析:官方在 X3.2 提交统计代码的时候,在入库前验证正则,而这个正则存在问题,不晓得官方的意图,所以解决方案就算是临时的处理吧
解决方案:
打开 source/admincp/admincp_setting.php
搜索
if(isset($settingnew['statcode'])) {
将这段落都删除,即
if(isset($settingnew['statcode'])) {
$settingnew['statcode'] = preg_replace('/
[imageframe lightbox="no" lightbox_image="" style_type="none" hover_type="none" bordercolor="" bordersize="0px" borderradius="0" stylecolor="" align="none" link="https://doc.weixiaoduo.com/pre-sale" linktarget="_blank" animation_type="0" animation_direction="down" animation_speed="0.1" animation_offset="" hide_on_mobile="no" class="" id=""]

[/imageframe]