織夢后臺登陸驗證碼不顯示圖片
找到解決方案了:(無需屏蔽驗證碼)
找到include 下面的 vdimgck.php 找到if(function_exists(“imagejpeg”))
在前面加上ob_clean();
問題解決!
問題根源:htmlspecialchars在php5.4默認為utf8編碼,gbk編碼字符串經 htmlspecialchars 轉義后的中文字符串為空,也就是標題為空。
解決辦法:給htmlspecialchars添加ENT_COMPAT ,'GB2312'參數修改編碼默認值。
具體修改頁面:
1、dede/article_add.php 和 dede/article_edit.php
將 $title = htmlspecialchars(cn_substrR($title,$cfg_title_maxlen));改成$title = htmlspecialchars(cn_substrR($title,$cfg_title_maxlen),ENT_COMPAT ,'GB2312');