summaryrefslogtreecommitdiffstats
path: root/system/helpers
AgeCommit message (Collapse)AuthorFilesLines
2013-01-19Remove whitespace from empty lines.Eric Roberts1-5/+5
Signed-off-by: Eric Roberts <eric@cryode.com>
2013-01-18Fix and optimize auto_link() URL helper function.Eric Roberts1-31/+22
Signed-off-by: Eric Roberts <eric@cryode.com>
2013-01-17Fix issues #2160, #2161Andrey Andreev1-11/+6
2013-01-01[ci skip] Happy new yearAndrey Andreev21-21/+21
2012-12-08While most of CodeIgniter supports protocol-relative URLs, a few URL helpers ↵Aaron Adams1-3/+3
do not. Most notably, redirect('//www.facebook.com/aaronadams') led my browser to https://aaronadams.ca/index.php/www.facebook.com/aaronadams. In this commit, I have fixed the header() helper, along with the anchor() and anchor_popup() helpers, to be compatible with protocol-relative URLs. Signed-off-by: Aaron Adams <aaron@aaronadams.ca>
2012-12-03[ci skip] Cleaned some spacesAndrey Andreev5-30/+28
2012-11-26Fix some erroneous variable names (sorry)Andrey Andreev1-2/+2
2012-11-26Language helper lang() to accept optional HTML attributesAndrey Andreev1-4/+5
(an improved version of PR #1235)
2012-11-22Added support for stream-like downloads of existing files to force_download()Andrey Andreev1-3/+38
Based on code/ideas from PR #365, #1254
2012-11-17Corrected phpdoc comment for mysql_to_unix() methodwebmasterar1-2/+2
2012-11-12Some micro-optimizationsAndrey Andreev1-2/+2
2012-11-09Polish docs for URL and XML helpers and deprecate obsolete options for ↵Andrey Andreev1-7/+10
String helper random_string() and URL helper url_title()
2012-11-08Polish docs for String, Text and Typography helpersAndrey Andreev1-2/+2
2012-11-08Deprecate String helper trim_slashes()Andrey Andreev1-0/+3
trim(, '/') is even shorter ...
2012-11-08Polish docs for HTML, Inflector, Language, Number, Path, Security and Smiley ↵Andrey Andreev3-17/+15
helpers Also fixed a DB_cache bug introduced in previous commit and removed an unused parameter in a smiley helper
2012-11-08Polish docs for the File and Form helpersAndrey Andreev1-17/+17
2012-11-08Deprecate the Email helperAndrey Andreev1-5/+7
2012-11-06directory_map() ... the final oneAndrey Andreev1-1/+2
2012-11-06Fix issue #1978Andrey Andreev1-4/+6
2012-11-02Some micro-optimizationsAndrey Andreev1-12/+5
2012-11-01Manually apply PR #1594 (fixing phpdoc page-level generation/warnings)Andrey Andreev21-21/+43
Also partially fixes issue #1295, fixes inconsistencies in some page-level docblocks and adds include checks in language files.
2012-11-01Fix an erroneous variable nameAndrey Andreev1-1/+1
2012-11-01Fix issue #1953 (form values being escaped twice)Andrey Andreev1-37/+46
Re-instaing an improved form_prep() function, reverting most of the changes from 74ffd17ab06327ca62ddfe28a186cae7ba6bd459.
2012-10-27Deprecate string helper repeater() (an alias for str_repeat())Andrey Andreev1-2/+5
2012-10-27[ci skip] Optimize ascii_to_entities()Andrey Andreev1-7/+4
2012-10-27[ci skip] Update docblocks for deprecated functionsAndrey Andreev4-22/+16
2012-10-26Fix #142Andrey Andreev1-10/+10
2012-10-26Deprecated form helper function form_prep().Andrey Andreev1-40/+11
This function has been broken for YEARS and it's value-caching logic has only introduced various problems. We have html_escape() since CI 2.1.0 which is a perfect replacement, so it should be used instead. Fixes #228 & #1630
2012-10-25Form helpers to ignore empty name attributes (fix #1506)Andrey Andreev1-0/+4
2012-10-25Add missing delimiter in preg_quote() occurences (fix #1929)Andrey Andreev1-1/+1
2012-10-24Fix #1146Andrey Andreev1-6/+3
2012-10-24[ci skip] style and phpdoc-related changes (rel #1295)Andrey Andreev2-14/+13
2012-10-23Fix issues #134, #1911Andrey Andreev1-1/+1
2012-10-19Manually apply an improved version of PR #1797 (auto_link() URL helper)Andrey Andreev1-9/+12
2012-10-12Set MySQL client compression to FALSE by default (problems reported with ↵Andrey Andreev1-1/+1
it), fix some typos, add encrypted database connections support and fix SQLSRV CharacterSet setting
2012-10-05Merge upstream branchAndrey Andreev20-833/+722
2012-09-17Merge pull request #1783 from vlakoff/developAndrey Andreev1-1/+1
Better server test in redirect() of URL helper
2012-09-13directory_map() was skipping files and directories named "0"vlakoff1-1/+1
Close #1757. Thanks @BennyC!
2012-09-12Better server test in redirect() of URL helpervlakoff1-1/+1
"Location" header bugs are specific to IIS; previous test was matching all HTTP servers under Windows. This test isn't perfect yet ($_SERVER['SERVER_SOFTWARE'], which corresponds to the "Server" header of HTTP response, might be missing), but there is no perfect test. "Refresh" method makes the window blank for quite a noticeable time, so let's not affect other servers because of IIS.
2012-09-07Merge pull request #1760 from vlakoff/develop-2Alex Bilbie1-1/+1
Better old captcha image test
2012-09-05Merge pull request #1750 from vlakoff/developAndrey Andreev1-1/+2
Simplification in Text Helper's character_limiter()
2012-09-04More complicated but faster methodvlakoff1-1/+2
Also added a comment to explain the reason for such a complicated method
2012-09-03Slightly robuster testvlakoff1-1/+1
Also, single quotes per style conventions
2012-08-31Simplification in Text Helper's character_limiter()vlakoff1-1/+1
Because the "\s" regex character class includes \r and \n, there is no need for the str_replace() part
2012-08-19Fixes issue #1678pickupman1-2/+1
2012-08-15Fix issue #1712Andrey Andreev1-1/+1
2012-08-14fix issue 1706Michiel Vugteveen1-1/+4
2012-07-29Adding a common stringify_attributes function for dealing with attributes ↵Eric Barnes3-100/+8
through out various helpers. Signed-off-by: Eric Barnes <eric@ericlbarnes.com>
2012-07-28Adding optional attributes as array or object for html helperEric Barnes1-19/+40
2012-07-27Improve change from f0ecb55dfe8dbfaf4c65dbe9d7e1bba8c131ebf4 and add ↵Andrey Andreev1-1/+1
changelog entries for pull #1654