summaryrefslogtreecommitdiffstats
path: root/system/helpers
AgeCommit message (Collapse)AuthorFilesLines
2014-01-15Fix #2822: Incorrect usage of fwrite()Andrey Andreev1-2/+10
We only used to check (and not always) if the return value of fwrite() is boolean FALSE, while it is possible that the otherwise returned bytecount is less than the length of data that we're trying to write. This allowed incomplete writes over network streams and possibly a few other edge cases.
2014-01-09Add HTTP response code 307 support in URL helper redirect()Andrey Andreev1-5/+10
2014-01-09Fix #133Andrey Andreev1-1/+6
2014-01-08Fix 2 errors caused by recent commitsAndrey Andreev1-1/+2
2014-01-08Fix #346Andrey Andreev1-1/+2
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-08Optimize get_instance() calls/assignmentsAndrey Andreev5-22/+11
2014-01-07Change Text helper default tag from <strong> to <mark>Andrey Andreev1-16/+8
Supersedes PR #1497
2014-01-06Make CI_Input::set_cookie() and cookie helpers set_cookie(), get_cookie(), ↵Andrey Andreev1-3/+3
delete_cookie()'s first (name) parameter mandatory
2013-10-25Implement $protocol parameter in Config base_url() and site_url() methodsvlakoff1-16/+2
Let's keep the implementation logic in one place. Improves 2023c3d05b042cf1322286d69557c2b8bf3bd8d5.
2013-10-23Fix issue #2695Andrey Andreev1-5/+27
2013-10-21Add 'filename' to the return elements for create_captcha() (PR #2602)Andrey Andreev1-4/+4
2013-10-21Manually apply PR #2656Andrey Andreev1-2/+2
Fixes an 'Array to string conversion' notice in form_dropdown()
2013-10-17Replace the last rand() with mt_rand()vlakoff1-7/+7
Better entropy, faster. Also fixed a few "it's" typos.
2013-10-04parse $extra attributes in form_dropdown.Ahmad Anbar1-5/+2
2013-09-13Another one following #2639Andrey Andreev1-1/+5
2013-09-13An update to the #2639 fixAndrey Andreev1-0/+4
2013-09-13Fix array notation fields for set_select() as wellAndrey Andreev1-27/+8
2013-09-13Fix #2639Andrey Andreev1-60/+19
2013-07-28Polishing Form helpervlakoff1-1/+6
2013-07-28Form helper _attributes_to_string() micro-optimizationvlakoff1-5/+5
As $attributes should be most of the times an array, let's save an is_string() call.
2013-07-27More logical ordervlakoff1-11/+11
2013-07-27Form helper: refactor form_open() and _attributes_to_string()vlakoff1-38/+18
2013-07-26Fix #2560Andrey Andreev1-2/+10
2013-07-26Fix #2558Andrey Andreev1-1/+1
2013-07-23Loader changes & optimizations related to issue #2551Andrey Andreev1-1/+1
2013-07-19[ci skip] Simplify get_file_info()Andrey Andreev1-1/+1
2013-07-18Add color customization to the CAPTCHA helperAndrey Andreev1-17/+37
Ref: Issue #867 & PRs #1405, #2485
2013-07-18Micro-optimization on base_url() & site_url()Andrey Andreev1-6/+6
2013-07-18Add that parameter for real :)Andrey Andreev1-1/+1
2013-07-18Add an optional parameter to URL helpers base_url() and site_url() ↵Andrey Andreev1-7/+21
(supersedes #2535)
2013-07-17[ci skip] Remove some empty linesAndrey Andreev2-2/+2
2013-05-18Required arg in between optional onesRasmus Lerdorf1-2/+2
Signed-off-by: Rasmus Lerdorf <rasmus@php.net>
2013-05-18The date_range() function is a bit brokenRasmus Lerdorf1-3/+3
Neither $unix_time nor $start_date were defined here Signed-off-by: Rasmus Lerdorf <rasmus@php.net>
2013-04-14final change (extra space)ash1-1/+1
2013-04-14newline at endash1-1/+1
2013-04-14eolash1-1/+0
2013-04-14eol 2ash1-0/+1
2013-04-14eol test.ash1-1/+1
2013-04-10removed sanity checks (developer-supplied value, not user input), added ↵ash1-15/+3
changelog entry, changed variable names
2013-04-10typo changeash1-3/+3
Uses the same defaults as were hard coded in (8 chars in length, 0-9a-aA-Z). Small change in this file means less code elsewhere when generating random character strings for the captcha word. all existing code will work the same.
2013-04-10Add options in create_captcha() to specify the randomly generated captcha ↵ash1-5/+16
word length and character pool Uses the same defaults as were hard coded in (8 chars in length, 0-9a-aA-Z). Small change in this file means less code elsewhere when generating random character strings for the captcha word.
2013-03-26Merge pull request #2348 from nisheeth-barthwal/feature/nested_keysAndrey Andreev1-7/+6
Added Parsing Capabilities to Input class for nested array keys
2013-03-26Code fixes in line with suggestionsnisheeth-barthwal1-10/+5
2013-03-25Simplified notation parsing and other cosmetic fixesnisheeth-barthwal1-32/+2
2013-03-24Fixed error in form_textarea helper functionZachary Cardoza1-1/+0
Reverted from GitHub edited version to remove document line end character. Good to merge now.
2013-03-24Revert "Fixed error in Form Helper textarea function"Zachary Cardoza1-1/+2
This reverts commit e15d1be514dad1df7a3c38d6265566692ecf1260.
2013-03-23Removed $recurse parameter in lieu of auto parsing. Changed "provision" entry.nisheeth-barthwal1-1/+1
2013-03-22Fixed error in Form Helper textarea functionZach Cardoza1-2/+1
Function had declaration of unused $name variable which caused errors.
2013-03-21Added array notation for keys in Input librarynisheeth-barthwal1-5/+39
2013-02-28Text helper: convert_accented_characters() optimizationvlakoff1-5/+8
Thanks to static variables, array_keys() and array_values() are now executed once only.