Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Add support for raw_input_stream
|
|
|
|
|
|
|
|
|
|
|
|
Added support for json input stream. (Not tested)
|
|
|
|
'Class Loaded' type of messages flood log files when
log_threshold is set to 2 (debug). They're now logged
as 'info' level.
This is manually applying PR #1528, which was created
to do the same thing, but became outdated.
|
|
- Remove PHP version from license notices
- Bump year number in copyright notices
- Recommend PHP 5.4 or newer to be used
- Tell Travis-CI to test on PHP 5.3.0 instead of the latest 5.3 version
Related: #3450
|
|
|
|
|
|
updated documentation
Fixed code style.
|
|
|
|
|
|
Close #3001
Close #3232
Related: #3244
|
|
This method does not return FALSE as said in doc block, the correct
return is STRING or NULL.
|
|
|
|
|
|
|
|
|
|
|
|
The core shouldn't depend on constants that are not defined by itself
|
|
|
|
- Use load_class() to get objects during bootstrap process.
- Change load_class() to accept a class constructor parameter
instead of previously unused class name prefix.
- Change CI_Router::__construct() to accept as a parameter.
|
|
Update copyright notices from 2013 to 2014.
And update one calendar example in user_guide from year 2013/2014 to
2014/2015.
|
|
- Make get_post(), post_get() and server()'s parameter mandatory.
- Change default value of parameter to NULL for cookie(), input_stream() and _fetch_from_array()
(for consistency with get(), post()).
- Delegate Array-vs-single and parameter detection to _fetch_from_array() to overall simplify the code.
|
|
Added ['standardize_newlines']
Also altered the Session cookie driver, which experienced issues with this
feature due to it's HMAC verification failing after the Input class alters
newlines in non-encrypted session cookies.
Supersedes PR #2470
|
|
When ['global_xss_filtering'] was turned on, the , , &
superglobals were automatically overwritten. This resulted in one of the following problems:
- xss_clean() being called twice
- Inability to retrieve the original (not filtered) value
XSS filtering is now only applied on demand by the Input class, and the default value for
the parameter in CI_Input methods is changed to NULL. Unless a boolean value is
passed to them, whether XSS filtering is applied depends on the ['global_xss_filtering']
value.
|
|
CI_Input::_clean_input_data() assumed that all input data is URL-encoded while sanitizing it.
However, PHP already performs URL-decoding on it, so this is either redudant or overly
intrusive as it resulted in many, many reports of data containing '%' followed by 1 numeric
characters being essentially destroyed.
Supersedes PR #1229
|
|
delete_cookie()'s first (name) parameter mandatory
|
|
replace it
Calls to this function are often needed before the Input library is available
|
|
|
|
followup to PR #2522
|
|
exact same behavior but faster, shorter
|
|
|
|
protected property;
|
|
|
|
|
|
`Content-Type` to `CONTENT_TYPE`
|
|
|
|
headers and should be pass through as is.
This is a follow up on #2107 (c82b57b) by @danhunsaker;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re-allocated exit status codes according to three references, which follow:
BSD sysexits.h:http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
GNU recomendations:http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
Bash scripting:http://tldp.org/LDP/abs/html/exitcodes.html
The GNU recommendations stem from and expand upon the standard C/C++ library (stdlibc)
definitions, while also suggesting some best-practice conventions which happen to prevent
exit status code collisions with bash, and probably other shells.
The re-allocated codes are now mapped to constant values, set in *application/config/constants.php*,
and used throughout the CodeIgniter core. They would additionally be used in *index.php*,
but the constants file hasn't been loaded at that point, so the integer values are used
instead, and a comment follows each such use with amplifying information on why that
particular value was selected.
Finally, the errors documentation has been updated accordingly.
Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
|