summaryrefslogtreecommitdiffstats
path: root/system/core/Input.php
AgeCommit message (Collapse)AuthorFilesLines
2015-03-18Updated CI_Input unit test and fixed error "undefined offset" caused by ↵Heesung Ahn1-2/+2
using the same variable name, $i, twice for for loop inside for loop. Signed-off-by:Heesung Ahn <ahn.heesung@gmail.com>
2015-02-27Make CI_Input:: read-only as wellAndrey Andreev1-1/+5
2015-02-27Fix #3633Andrey Andreev1-0/+1
2015-02-27Eh ... really fix that notice (#3604)Andrey Andreev1-0/+2
2015-02-27Fix an E_NOTICE caused by #3604Andrey Andreev1-13/+30
2015-02-26Merge pull request #3604 from Ignasimg/patch-1Andrey Andreev1-1/+15
Add support for raw_input_stream
2015-02-26Update Input.phpIgnasimg1-3/+3
2015-02-26funny tabs & spaces added and removed.Ignasimg1-18/+20
2015-02-20Added support for raw_input_stream property.Ignasimg1-53/+28
2015-02-19documentation changesIgnasimg1-8/+8
2015-02-06a tiny changeİrfan Evrens1-1/+1
2015-02-06Update Input.phpIgnasimg1-9/+46
Added support for json input stream. (Not tested)
2015-01-21Remove closing blocks at end of PHP filesvlakoff1-3/+0
2015-01-20[ci skip] Change some log messages' levelAndrey Andreev1-2/+2
'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.
2015-01-09Bulk (mostly documentation) updateAndrey Andreev1-3/+3
- 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
2014-12-02Fix an error from the previous commitAndrey Andreev1-1/+1
2014-12-02Some optimizations & polishing following PR #3381Andrey Andreev1-14/+5
2014-12-02Added changelog entryAhmad Anbar1-6/+6
updated documentation Fixed code style.
2014-12-02Allow pulling multiple get/post ...etc at onceAhmad Anbar1-0/+12
2014-10-27[ci skip] Switch to MIT license; close #3293Andrey Andreev1-14/+25
2014-10-05config_item() to return NULL instead of FALSE for non-existing itemsAndrey Andreev1-1/+1
Close #3001 Close #3232 Related: #3244
2014-10-03fix doc block get_request_header()Adriano Rosa1-1/+1
This method does not return FALSE as said in doc block, the correct return is STRING or NULL.
2014-05-08[ci skip] Update a comment for CI_Input::input_stream()Andrey Andreev1-2/+2
2014-04-15Fix #3004Andrey Andreev1-50/+1
2014-04-15Follow-up to aeed15eb8556ab671507f17ef9a8cf28903999aaAndrey Andreev1-1/+1
2014-03-21remove eolfabianozenatti1-1/+1
2014-03-21Fix typo in CI_Input constructorfabianozenatti1-2/+2
2014-03-13Partially revert PR #2190Andrey Andreev1-1/+1
The core shouldn't depend on constants that are not defined by itself
2014-02-27Add parameter to CI_Input::user_agent()Andrey Andreev1-14/+2
2014-02-24Don't use globalsAndrey Andreev1-4/+2
- 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.
2014-02-112013 > 2014darwinel1-1/+1
Update copyright notices from 2013 to 2014. And update one calendar example in user_guide from year 2013/2014 to 2014/2015.
2014-02-08CI_Input tweaksAndrey Andreev1-65/+20
- 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.
2014-01-08Make newline standardization configurableAndrey Andreev1-4/+5
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
2014-01-08Fix #346Andrey Andreev1-14/+24
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.
2014-01-08Fix #148Andrey Andreev1-4/+6
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
2014-01-06Make CI_Input::set_cookie() and cookie helpers set_cookie(), get_cookie(), ↵Andrey Andreev1-1/+1
delete_cookie()'s first (name) parameter mandatory
2013-11-12Deprecate CI_Input::is_cli_request() and add common function is_cli() to ↵Andrey Andreev1-3/+4
replace it Calls to this function are often needed before the Input library is available
2013-09-23Fix issue #33Andrey Andreev1-7/+24
2013-08-11Input class: change behavior of get_post() method, add post_get() methodvlakoff1-1/+17
followup to PR #2522
2013-08-06Replace php_sapi_name() function with PHP_SAPI constantvlakoff1-1/+1
exact same behavior but faster, shorter
2013-08-06Various typos and tabs adjustmentsvlakoff1-1/+1
2013-04-17See #2409: Avoid overwriting global $_SERVER and set Content-Type to ↵CJ1-1/+1
protected property;
2013-04-17#2409: Force Content Type to go through camelization;CJ1-1/+1
2013-04-16See #2409: Reformating and code cleanup for request_headers;CJ1-15/+8
2013-04-16See #2409: Remove double replacing of dashes and instead change ↵CJ1-2/+2
`Content-Type` to `CONTENT_TYPE`
2013-04-16#2409: Updated based on feedback by @narfbg;CJ1-2/+8
2013-04-16apache_request_headers need not go through recapitalization of incomingCJ1-8/+8
headers and should be pass through as is. This is a follow up on #2107 (c82b57b) by @danhunsaker;
2013-03-26Code style fixnisheeth-barthwal1-1/+1
2013-03-26Code fixes in line with suggestionsnisheeth-barthwal1-5/+6
2013-03-25Simplified notation parsing and other cosmetic fixesnisheeth-barthwal1-31/+16