Codeigniter升级到1.7
Thursday, October 9th, 2008 | 建站攻略
Codeigniter Version 1.7
Release Date: In development
SVN Revision: XXXX
- Libraries
- 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.
- 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.
- 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.
- 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.
- Added controller class/method info to Profiler class.
- Improved the “auto typography” feature and moved it out of the helper into its own Typography Class.
- Added max_filename option to set a file name length limit in the File Upload Class.
- Added set_status_header() function to Output class.
- Changed the output of the profiler to use style attribute rather than clear, and added the id “codeigniter_profiler” to the container div.
- Database
- Added removal of non-printing control characters in escape_str() of DB drivers that do not have native PHP escaping mechanisms (mssql, oci8, odbc), to avoid potential SQL errors, and possible sources of SQL injection.
- Helpers
- 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.
- Added current_url() and uri_segments() to URL helper.
- Altered auto_link() in the URL helper so that email addresses with “+” included will be linked.
- Improved accuracy of calculations in Number helper.
- Removed added newlines (“\n”) from most form and html helper functions.
- Tightened up validation in the Date helper function human_to_unix(), and eliminated the POSIX regex.
- Updated Date helper to match the world’s current time zones and offsets.
- Other changes
- Improved performance and accuracy of xss_clean(), including reduction of false positives on image/file tests.
- Added sanitization in xss_clean() for a deprecated HTML tag that could be abused in user input in Internet Explorer.
- Added a few openxml document mime types, and an additional mobile agent to mimes.php and user_agents.php respectively.
- Added PHP Style Guide to docs.
- Added backticks around column names in MySQL when using insert_string and update_string functions, and in where() function.
- Modified Pagination library to only output the “First” link when the link for page one would not be shown.
- Added a file lock check during caching, before trying to write to the file.
- Added driver name variable in each DB driver, based on bug report #4436.
- Modified Cookie key cleaning to unset a few troublesome key names that can be present in certain environments, preventing CI from halting execution.
相关日志
No comments yet.