aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cgi
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* Fix ruby -w warnings for mismatched indentation discovered by rdocdrbrain2008-09-231-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/html.rb (checkbox_group,radio_group): bug fixxibbar2008-09-171-6/+6
| | | | | | | | | use size instead of bytesize. * test/cgi/test_cgi_tag_helper.rb: test for checkbox_group,radio_group. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb: performance improvement. xibbar2008-09-161-109/+112
| | | | | | | | | From CGIAlt http://cgialt.rubyforge.org/ * test/cgi/test_cgi_header.rb: exception class fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI::parse): performance improvementxibbar2008-09-141-8/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* properties.nobu2008-09-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/cookie.rb (CGI::Cookie#to_s): performance improvementxibbar2008-09-101-25/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi*: split cgi.rb into four files. [ruby-dev:36041]xibbar2008-09-094-0/+2068
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc.rb: massive spelling correction patch from Evan Farrarmatz2008-06-042-3/+3
| | | | | | <evanfarrar at gmail.com> in [ruby-doc:1382] applied. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (CGI::Session::FileStore::restore): usematz2007-11-151-4/+12
| | | | | | | lockfile for exclusive locks. a patch from <tommy AT tmtm.org>. [ruby-dev:32296] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (create_new_id): don't cut off md5.hexdigest toakr2007-06-291-1/+1
| | | | | | | | follow Ruby 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/securerandom.rb: renamed from lib/secrand.rb.akr2007-06-101-2/+2
| | | | | | | suggested by NaHi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb: use secrand for generating cookies.akr2007-06-081-9/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb, lib/cgi/session/pstore.rb: suppress warnings.nobu2006-07-302-23/+10
| | | | | | | fixed: [ruby-talk:204896] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (inspect_obj): unintended space removal.matz2005-03-071-2/+2
| | | | | | | | | | | | | [ruby-dev:25810] * eval.c (rb_exec_recursive): should not use NODE in disclosed context. [ruby-dev:25812] * io.c (rb_f_open): need not to check if to_open value is a T_FILE. [ruby-dev:25812] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (CGI::Session#initialize): empty session id wasnobu2004-12-191-1/+2
| | | | | | | used if request had no session key. fixed: [ruby-core:03981] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (CGI::Session#initialize): control addingnobu2004-12-171-6/+5
| | | | | | | session_id hidden fields. fixed: [ruby-talk:123850] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb (Set#==): [ruby-dev:25206]matz2004-12-152-17/+28
| | | | | | | | | | | * ext/openssl/ossl_digest.c (ossl_digest_initialize): [ruby-dev:25198] * utf8.c (utf8_is_mbc_ambiguous): [ruby-talk:123561] * utf8.c (utf8_mbc_to_normalize): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (convert_type): [ruby-core:03845]matz2004-11-291-2/+2
| | | | | | | | | | | | | | | * eval.c (rb_funcall_rescue): new function. * object.c (rb_Array): avoid using rb_respond_to(). * object.c (rb_Integer): ditto. * eval.c (get_backtrace): no conversion for nil. * parse.y (reduce_nodes): empty body should return nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_gsub): internal buffer should not be listed bymatz2004-11-192-4/+18
| | | | | | | | | | | ObjectSpace.each_object() by String#gsub. [ruby-dev:24931] * lib/cgi/session.rb (CGI::Session::FileStore::initialize): raise exception if data corresponding to session specified from the client does not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_mod_check): frozen check should be separated.matz2004-11-161-3/+7
| | | | | | | [ruby-core:3742] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (read_all): block string buffer modification duringmatz2004-10-191-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_io_fread() by freezing it temporarily. [ruby-dev:24479] * dir.c (rb_push_glob): block call at once the end of method. [ruby-dev:24487] * ext/enumerator/enumerator.c (enum_each_slice): remove rb_gc_force_recycle() to prevent potential SEGV. [ruby-dev:24499] * ext/zlib/zlib.c (zstream_expand_buffer): hide internal string buffer by clearing klass. [ruby-dev:24510] * ext/socket/socket.c (sock_s_getservbyaname): protocol string might be altered. [ruby-dev:24503] * string.c (rb_str_upto): check if return value from succ is a string. [ruby-dev:24504] * io.c (rb_io_popen): get mode string via rb_io_flags_mode() to avoid mode string modification. [ruby-dev:24454] * io.c (rb_io_getline_fast): should take delim as unsigned char to distinguish EOF and '\377'. [ruby-dev:24460] * io.c (rb_io_getline): add check for RS modification. [ruby-dev:24461] * enum.c (enum_sort_by): use qsort() directly instead using rb_iterate(). [ruby-dev:24462] * enum.c (enum_each_with_index): remove rb_gc_force_recycle() to prevent access to recycled object (via continuation for example). [ruby-dev:24463] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_delete): element comparison might change arraymatz2004-09-171-0/+37
| | | | | | | | | | | | | | | | size. [ruby-dev:24273] * parse.y: make ruby parser reentrant. merge ripper parser to the real one. this change makes ruby require bison. * file.c (rb_file_truncate): clear stdio buffer before truncating the file. [ruby-dev:24191] * ext/digest/digest.c: use rb_obj_class() instead of CLASS_OF which might return singleton class. [ruby-dev:24202] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_and): protect parameters from GC.matz2004-08-281-1/+3
| | | | | | | | | | | | [ruby-talk:110664] * error.c (exc_equal): exceptions are equal if they share same class, message and backtrace. [ruby-talk:110354] * error.c (name_err_mesg_equal): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (CGI::Session::FileStore#initialize): do notshugo2004-08-242-17/+7
| | | | | | | | | | use a session id as a filename. * lib/cgi/session/pstore.rb (CGI::Session::PStore#initialize): ditto. * lib/cgi/session/pstore.rb (CGI::Session::PStore#initialize): use Dir::tmpdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/session.rb (CGI::Session::FileStore#initialize): untaintshugo2004-08-241-1/+1
| | | | | | | session id after check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (define_final): should not disclose NODE* to Ruby world.matz2004-07-232-1/+4
| | | | | | | [ruby-dev:23957] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_min_by): new method Enum#min_by. added Enum#max_bymatz2004-07-141-2/+2
| | | | | | | as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_eq): alway check if operands are NaN.matz2004-05-201-25/+24
| | | | | | | | | | [ruby-list:39685] * lib/cgi/session.rb: use LOCK_SH to read, and a few other improvements. [ruby-core:02328] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Doug Kearns's doc. patchdave2004-02-261-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.matz2004-01-021-2/+2
| | | | | | | | | | | | [ruby-dev:22476] * io.c (argf_eof): ARGF.eof? should not have any side effect. [ruby-dev:22469] * io.c (argf_each_byte): should return self. [ruby-dev:22465] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-161-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add documentation in RDoc format.wew2003-08-291-1/+46
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e