看板 PHP 關於我們 聯絡資訊
1.7.1 釋出日期:2009.02.10 SVN Revision: 1640 Libraries * 修正 Form Validation library 當中 一些亂寫程式碼所導致的安全性問題(#6068)(特別感謝 hkk) * 修改 Pagination library 當中,預設的頁碼顯示方式,從 <b> 改成 <strong> * 遇到不允許的字元時,會送出「HTTP/1.1 400 Bad Request」的 header * Typography parser 的 inline element 增加 <big>、<small>、<q>、<tt> * 使用 sendmail 時,Email library 會回報更精準的錯誤訊息 * 移除 Image Manipulation class 的 rotate() function, 對於型態的嚴格檢查 * 加強使用 GD lib 存圖檔時的錯誤檢查 * 為了更能夠對付多種的 MUA(譯註:Mail User Agent), 在 multipart email 的 header 跟 MIME 訊息文字當中多增加一行。 * 針對 Image lib 中 explode_name() 的效率與準確性, 做了謹慎的改進。 Database * 讓 delete() 也可以增加接收 where_in() 產生的句子 Helpers * 讓 Form helper 的 form_dropdwon() 可以產生 optgroup。 * Form helper 的 form_button(),type 從原本預設的「submit」改成「button」 * HTML helper 增加 doctype() * URL helper 的 url_title() 增加強制轉小寫的功能。 * 更改 URL helper 的 redirect(),允許這個 function 重新導向 到 CI 站台以外的 URL。 * 更新 get_cookie(),當要求的 cookie 名稱不存在時, 會去試圖抓取 global cookie 其他更新 * 加強 xss_clean() 的安全性,防止 IE 被攻擊。 * config/mimes.php 當中增加「application/msexcel」,對應到 .xls 檔案類型 * 增加「proxy_ips」的設定,用來設定 reverse proxy server 的白名單, 可藉此信任 HTTP_X_FORWARDED_FOR header 以增測造訪者的 ip address。 * 加強 Upload::is_allowed_filetype() 的圖檔部份。 Bug fixes for 1.7.1 * Database o 在 order_by() 時使用 random 所造成的錯誤 (#5706) o 增加一個 primary key 時所造成的 Forge 當掉 (#5731) o 在多個 database 下使用 DB cache 的錯誤 (#5737) o TRUNCATE 不被認為是一個「寫入」查詢的錯誤 (#6619) o csv_from_result() 檢查不存在 method 的錯誤 o _protect_identifiers() 的錯誤,它會不正確地移除所有 pipe symbol「|」 * user guide 的拼字錯誤,或是範例 (#5998, #6093, #6259, #6339, #6432, #6521) * MySQLi 驅動程式沒有指定 port 所產生的錯誤 * Fixed a bug (#5702), in which the field label was not being fetched properly, when "matching" one field to another. * Fixed a bug in which identifers were not being escaped properly when reserved characters were used. (譯註:上面這兩個實在不知道怎麼翻譯...) * 正規表示法在自動排版上頭,防止 paragraph 標籤 submit 的錯誤 * tag 的 attribute 中兩個「-」 會換成一個「-」 * tag 的 attribute 中兩個空隔會換成一個 non-breaking space * Typography::format_characters() 中 curly quote「'」造成的準確性問題 * 修正一些註解區塊,使之對應到正確的回傳值。 * email header 中,標題夾帶 high ascii 字元所造成的問題 * 再一個正當字元後面的 whitespace 可能不會被顯示的錯誤 * HTML 註解跟 <pre> 在 Typography::auto_typography() 會被 parse 的問題 * Typography::auto_typography() 中 non-breaking space 的清除問題 * 修正 database 跳脫字元的問題,當一個複合的敘述(例如 SUM()) 在 database prefix 沒辦法正確地處理。 * 當一個沒有封閉的 quote 放在 paragraph tag 前, 然後馬上接另外一個 tag 的錯誤。 * Text helper 在處理某些 locale 時,word_censor() 在某些以地區字元開頭或結尾的字詞沒辦法正確處理的錯誤。 * Text helper 會插入字串結束字元在字串結尾。 * Inflection helper 的 plural() 處理結尾為 y 的錯誤 (#6342) * 預設的 controller 在用 URI::rsegment route URI segment 時的錯誤 (#6517) * Security helper 中 xss_clean() 使用已經捨棄的第二個參數 (#6706) * URL helper 的 url_title() 允許在 url 的結尾出現 trailing period 的錯誤 (譯註:不知所云 Orz) * Email class 中使用 mail 協定時,CRLF 用在 header 來新增一行的字元時的錯誤 (#6669) * 當 URI::A_filter_uri() 正在跳離錯誤卻沒有使用 show_error()。 (#6500) * File Helper 中 get_dir_file_info() 遞迴不太正確的 bug * Tweaked Typography::auto_typography() for some edge-cases. 不可免俗的廣告網頁版 http://pt2wiki.twbbs.org/Wiki.jsp?page=PHP_CI_ChangeLog 有錯 or 更好的翻譯建議,還請不吝指教... [跪拜之 Orz] -- 侃侃長論鮮窒礙 首頁:http://www.psmonkey.idv.tw 眾目睽睽無心顫 Blog:http://ps-think.blogspot.com 煢居少聊常人事 殺頭容易告白難 歡迎參觀 Java 版(@ptt.cc)精華區 \囧/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.132.38.129
chph :推 02/12 22:15