我做了修正後發現:並無法解決亂碼的問題!
後來我把attach_mod/displaying.php、attach_mod/posting_attachments.php、uacp.php
裡的 stripslashes全數刪除,
發現似乎可以正常!!(有點擔心!!)
目前有一個情形是:第一次發文是正常的,但是如果再次進入"編輯"去"更新註解"則
原本輸入的"功能許豹枯"會變成"功\\能許\\豹\\枯\\"
按下確定後"檔案描述"也會跟著變成"功\\能許\\豹\\枯\\"
如要正常顯示必須手動去將 " \ " 刪除\r
不知道有沒有更好的方法??
[問題]Attach Mod 的檔案註解是否不支援日文?
版主: 版主管理群
opensh85216s 寫:
不知道有沒有更好的方法??
displaying.php
find
代碼: 選擇全部
$comment = trim(htmlspecialchars(stripslashes($attachment_comment_list[$i])));代碼: 選擇全部
$comment = trim(htmlspecialchars($attachment_comment_list[$i]));代碼: 選擇全部
$comment = trim(htmlspecialchars(stripslashes($attachments['_' . $post_id][$i]['comment'])));代碼: 選擇全部
$comment = trim(htmlspecialchars($attachments['_' . $post_id][$i]['comment']));posting_attachments.php
find
代碼: 選擇全部
$this->attachment_comment_list[] = $attachments[$i]['comment'];代碼: 選擇全部
$this->attachment_comment_list[] = addslashes($attachments[$i]['comment']);有相同的地方都換掉即可. 以上解決 attachment 許功蓋問題
天霜大大~連接已經失效~能否請您放上新的連接~感激不盡天霜 寫:改用筆記本下載
http://starryhometown.net/forum/viewtop ... =2484#2484
知道原因了...
發表在文章上會有一些程式碼會被改變
例:
& a m p ; > &

