aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cgi
Commit message (Collapse)AuthorAgeFilesLines
...
* remove trainling spaces.nobu2012-08-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Suppress warnings.naruse2012-08-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Tue Aug 14 11:55:37 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>xibbar2012-08-141-1/+1
| | | | | | * lib/cgi/util.rb (CGI::escapeHTML): &apos; is not recommended. [Bug #6850] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/html.rb: Use << instead of +=.naruse2012-07-251-16/+16
| | | | | | | `a += b` is syntax sugar of `a = a + b`; it creates a new string object. `a << b` is concatenation and doesn't create new object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/html.rb (element_init): suppress redefine warning.naruse2012-07-251-0/+4
| | | | | | Don't define methods if they are already defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Jul 18 07:59:29 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>xibbar2012-07-171-3/+6
| | | | | | | * lib/cgi/util.rb (CGI.escapeHTML,unescapeHTML): Add &apos; for HTML5 escaping. [Feature #6620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Jul 4 13:38:12 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>xibbar2012-07-041-6/+3
| | | | | | * lib/cgi/util.rb: revert 36299: &apos; is XML specification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Jul 4 08:45:41 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>xibbar2012-07-041-5/+6
| | | | | | | | * lib/cgi/core.rb: fix bug: When query parameter is 'id=123&id', cgi['id'] => '123' is correct. First parameter is valid. [Feature #6621] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Jul 4 08:24:28 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>xibbar2012-07-031-3/+6
| | | | | | * lib/cgi/util.rb: Add &apos; to CGI's HTML escaping.[Feature #6620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Jul 4 08:18:01 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>xibbar2012-07-031-4/+4
| | | | | | * lib/cgi/html.rb: fix some elements to upper case.[Bug #6632] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Jul 4 08:11:15 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>xibbar2012-07-032-6/+6
| | | | | | * lib/cgi/core.rb,html.rb: fix typo.[Bug #6632] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb (CGI.escape): support a string with invalid bytemrkn2012-01-201-2/+3
| | | | | | | | | | sequence. * test/cgi/test_cgi_util.rb (test_cgi_escape_with_invalid_byte_sequence): test for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Tue Oct 18 02:24:19 2011 Takeyuki FUJIOKA <xibbar@ruby-lang.org>xibbar2011-10-171-1/+1
| | | | | | | * lib/cgi/core.rb (QueryExtension#read_multiparat): replace 'stdinput' from '$stdin' because using fast cgi. [Bug #5451] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb: fix multipart form parsing bug. [Bug #3866]xibbar2011-07-091-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb: Improve documentation. Patch by Kuba Fietkiewicz.drbrain2011-06-012-10/+18
| | | | | | | | [Ruby 1.9 - Bug #4775] * lib/cgi/core.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb: Improve documentation. Patch by Clinton Nixon.drbrain2011-05-183-0/+16
| | | | | | | | | [Ruby 1.9 - Bug #4733] * lib/cgi/core.rb: ditto * lib/cgi/cookie.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb: Add toplevel documentation to class CGIdrbrain2011-05-164-185/+226
| | | | | | | | | | | | | * lib/cgi/session.rb: Add overview documentation to CGI::Cookie * lib/cgi/html.rb: Don't add CGI::TagMaker documentation to CGI. Patch by David Copeland. [Ruby 1.9 - Bug #4704] * lib/cgi/core.rb: Clean up CGI documentation. Patch by David Copeland. [Ruby 1.9 - Bug #4704] * lib/cgi/cookie.rb: Clean up CGI::Cookie documentation. Patch by David Copeland. [Ruby 1.9 - Bug #4704] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Various .document files: Update .document files to match files whichdrbrain2011-05-111-1/+0
| | | | | | | have documentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb (CGI::unescape): bugfix to unescape the multibytexibbar2010-10-131-1/+1
| | | | | | string. Thanks nobu and tDiary dev members. [Bug #3909] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY value insteadnobu2010-05-011-1/+1
| | | | | | | of fragile check by platform name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/{core, util}.rb (RFC822_DAYS, RFC822_MONTHS):xibbar2010-04-202-6/+6
| | | | | | move the constant because used only util.rb. [Bug #2704] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Surpress warnings.naruse2010-04-061-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].nobu2010-03-202-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Rolled out last changeryan2009-11-161-3/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Minor cleanup to improve hash useryan2009-11-161-4/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb (CGI::pretty): fix the overflow bugxibbar2009-11-121-1/+1
| | | | | | if stripped string.[ruby-dev:37975] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (read_from_cmdline): this code is better.xibbar2009-11-121-5/+1
| | | | | | [ruby-core:25991] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/cookie.rb: add default value to @@accept_charsetxibbar2009-10-042-0/+2
| | | | | | | if have not defined. [ruby-dev:38987] * lib/cgi/util.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb: fix command-line option ofxibbar2009-10-031-3/+12
| | | | | | non-interactive terminal. [ruby-core:23016] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/cookie.rb: fixed indent.nobu2009-09-201-33/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/cookie.rb (value): Keep CGI::Cookie#value in sync with the cookie ↵marcandre2009-09-131-6/+13
| | | | | | itself. Based on a patch by Arthur Schreiber [ruby-core:17634] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb (CGI::unescape): support encoding option.xibbar2009-07-302-7/+7
| | | | | | | * lib/cgi/cookie.rb (CGI::Cookie.parse): fix for the encoded value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI::HTTP_STATUS): typo fixed. a patch frommatz2009-05-241-1/+1
| | | | | | Nobuhiro IMAI. [ruby-dev:38538] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (read_multipart): When path is not defined,mame2009-04-161-1/+7
| | | | | | | | define local_path as a method always returning nil instead of aliasing. This is because StringIO#path no longer exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-066-115/+115
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI.parse): generate only key on params hashxibbar2009-01-221-0/+2
| | | | | | | if request have only key uri parameters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb: fix bug for ignore session_id option.xibbar2008-12-182-3/+5
| | | | | | | | | | | report from [ruby-core:18635], [Bug #572] * lib/cgi/core.rb: use Encoding#find when encoding set. * test/cgi/test_cgi_session.rb: test for session_id specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session/pstore.rb: fix indentation.xibbar2008-11-081-25/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (FileStore): use marshalized data.xibbar2008-11-081-2/+2
| | | | | | | | * test/cgi/session_dir: add a session directory in test. * test/cgi/test_cgi_session.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb: remove debug code. xibbar2008-11-081-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb: fix indentation. xibbar2008-11-081-64/+66
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/html.rb: allow symbolized key. xibbar2008-10-241-2/+2
| | | | | | | * test/cgi/test_cgi_tag_helper.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (read_multipart): change field value as Stringxibbar2008-10-241-1/+23
| | | | | | | | | | from StringIO of Tempfile when multipart parse without file field. add files method that can uploaded files. [ruby-dev:36547] * test/cgi/test_cgi_multipart.rb: fix the test for core.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (read_multipart): file's encoding is ascii-8bitxibbar2008-10-201-6/+6
| | | | | | | from file field of multipart form. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI::QueryExtension::initialize_query): fix thexibbar2008-10-061-1/+1
| | | | | | | | | | | | condition. * test/cgi/test_cgi_core.rb: bug fix encoding. thaks to TAKANO Mitsuhiro <takano32 at jus.or.jp> . * test/cgi/test_cgi_multipart.rb: temporary comment in. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI::QueryExtension): delete MorphingBodyxibbar2008-10-021-131/+97
| | | | | | | | | | and replace like as 1.8's in multipart reading. see [ruby-dev:36443], reference from CGIAlt http://cgialt.rubyforge.org/ * test/cgi/test_cgi_multipart.rb : fixed multipart test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/html.rb (CGI::HtmlExtension::{radio_group, checkbox_group}):xibbar2008-09-281-8/+8
| | | | | | | | | | can specify the false as checked or selected value. [ruby-core:18306], [ruby-core:18307] * test/cgi/test_cgi_tag_helper.rb: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/html.rb (CGI::HtmlExtension::popup_menu):xibbar2008-09-281-3/+3
| | | | | | | fix the calls #bytesize on array parameters. [ruby-core:18919] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI::parse): ignore illegal query params.xibbar2008-09-281-1/+3
| | | | | | | [ruby-dev:36618] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI::new, CGI::{accept_charset,accept_charset=}) :xibbar2008-09-241-12/+98
| | | | | | | | | accept parameters either in a hash, string as a block. add the encoding validation process. * test/cgi/test_cgi_core.rb : test for query encoding check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e