織夢後臺釋出文章提示“標題不能為空”
阿新 • • 發佈:2019-02-19
解決方案:給htmlspecialchars(函式)新增ENT_COMPAT ,'GB2312'
就是給php的這個函式強制設定編碼格式,這樣也能解決這個問題,具體對應的位置是
①:dede/article_add.php 這個php檔案中查詢
$title = htmlspecialchars(cn_substrR($title,$cfg_title_maxlen));
改成
$title = htmlspecialchars(cn_substrR($title,$cfg_title_maxlen),ENT_COMPAT ,'GB2312');
②:然後再找到dede/article_edit.php這個php檔案中查詢
$title = htmlspecialchars(cn_substrR($title,$cfg_title_maxlen));
改成
$title = htmlspecialchars(cn_substrR($title,$cfg_title_maxlen),ENT_COMPAT ,'GB2312');
③:include/ckeditor/ckeditor_php5.php 查詢
htmlspecialchars($value)
改為htmlspecialchars($value, ENT_COMPAT ,'GB2312')