summaryrefslogtreecommitdiffstats
path: root/system/helpers
AgeCommit message (Collapse)AuthorFilesLines
2014-02-17Removed extra space, condensed $defaultsBrennan Thompson1-4/+3
2014-02-17Removed extra spaces and irrelevant conditionBrennan Thompson1-11/+11
2014-02-17Micro-optimizationsAndrey Andreev1-1/+0
2014-02-17Updated code to match style guideBrennan Thompson1-3/+3
2014-02-17Removed non permitted changesBrennan Thompson1-3/+1
2014-02-16Dropdown should match style guide now.Brennan Thompson1-2/+8
2014-02-15[ci skip] Don't use output buffering in URL helper safe_mailto()Andrey Andreev1-17/+18
2014-02-14Actual fix for extra whitespaceBrennan Thompson1-1/+1
2014-02-14Removed space for travis ci checksBrennan Thompson1-1/+1
2014-02-14Fix for selected being NULL from set_valueBrennan Thompson1-1/+1
2014-02-14Made form_dropdown compatible with the other form helper methodsBrennan Thompson1-19/+22
2014-02-13Update Text and Inflector helpers to utilize mbstring, if availableAndrey Andreev2-16/+17
Text: word_wrap(), ellipsize() Inflector: humanize(), underscore() (rel #2855)
2014-02-13Merge pull request #2610 from mjnaderi/patch-1Andrey Andreev1-4/+4
character_limiter now works correct for UTF-8 strings
2014-02-112013 > 2014darwinel21-21/+21
Update copyright notices from 2013 to 2014. And update one calendar example in user_guide from year 2013/2014 to 2014/2015.
2014-02-09Removed new line at the end of file locally.iolufemi1-1/+1
2014-02-07Fixed Typo in String Helper functionOlanipekun Femi1-2/+2
alnum spelled as alunum in random_string function documentation comment.
2014-02-07Use is_really_writable() in captcha helperAndrey Andreev1-1/+1
2014-02-07Use is_really_writable() in get_file_info()Andrey Andreev1-2/+1
2014-01-28Fix #2845Andrey Andreev1-1/+1
2014-01-24[ci skip] AND -> &&Andrey Andreev1-1/+1
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-08-22count number of characters (with mb_strlen) instead of counting number of ↵Mohammad Javad Naderi1-4/+4
bytes with strlen
2013-08-22remove newline from end of fileMohammad Javad Naderi1-1/+1
2013-08-22character_limiter now works correct for UTF-8 stringsMohammad Javad Naderi1-5/+5
strlen() doesn't return the actual length for unicode strings. For example strlen('سلام') returns 8, but length of سلام is 4. strlen(utf8_decode('سلام')) returns correct value 4. Reference: http://www.php.net/manual/de/function.strlen.php#45407
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