codeigniter1.7升级
Thursday, September 4th, 2008 | 胡谈互联网
Codeigniter出最新版本1.7.改进了一些bug,并对form验证class做了较大调整,建议更新现有程序中的相关代码。session的class也有调整,如果你用数据库保存session,那么还需要新增一行数据,来满足1.7的改进。
Version 1.7
Release Date: In development
SVN Revision: XXXX
* Libraries
o Added a new Form Validation Class. It simplifies setting rules and field names, supports arrays as field names, allows groups of validation rules to be saved in a config file, and adds some helper functions for use in view files. Please note that the old Validation class is now deprecated. We will leave it in the library folder for some time so that existing applications that use it will not break, but you are encouraged to migrate to the new version.
o Updated the Sessions class so that any custom data being saved gets stored to a database rather than the session cookie (assuming you are using a database to store session data), permitting much more data to be saved.
o Added the ability to store libraries in subdirectories within either the main “libraries” or the local application “libraries” folder. Please see the Loader class for more info.
o Added the ability to assign library objects to your own variable names when you use this->load->library(). Please see the Loader class for more info.
o Changed the output of the profiler to use style attribute rather than clear, and added the id “codeigniter_profiler” to the container div
* Helpers
o Added several new “setting” functions to the Form helper that allow POST data to be retrieved and set into forms. These are intended to be used on their own, or with the new Form Validation Class.
o Added current_url() and uri_segments() to URL helper.
o Improved accuracy of calculations in Number helper.
o Removed added newlines (”\n”) from most form and html helper functions.
o Tightened up validation in Date Helper human_to_unix(), and eliminated the POSIX regex.
o Updated Date Helper to match the world’s current time zones and offsets.
o Fixed the spelling of “raspberry” in config/smileys.php
* Other changes
o Improved performance and accuracy of xss_clean(), including reduction of false positives on image/file tests.
o Added a few openxml document mime types, and an additional mobile agent to mimes.php and user_agents.php respectively.
o Added sanitization in xss_clean() for a deprecated HTML tag that could be abused in user input in Internet Explorer.
o Added PHP Style Guide to docs.
Bug fixes for 1.7.0
* Fixed bug in xss_clean() that could remove some desirable tag attributes.
* Fixed assorted user guide typos or examples (#4807, #4812, #4840, #4862, #4864, #4899, #4930, #5006, #5071).
* Fixed an edit from 1.6.3 that made the $robots array in user_agents.php go poof.
* Fixed a bug in the Email library with quoted-printable encoding improperly encoding space and tab characters.
* Modified XSS sanitization to no longer add semicolons after &[single letter], such as in M&M’s, B&B, etc.
* Modified XSS sanitization to no longer strip XHTML image tags of closing slashes.
相关日志
No comments yet.