問題描述:在後臺,全域性,站點資訊新增統計程式碼時,程式碼會自動變成
原因分析:官方在 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]