summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-04-17 19:43:27 +0000
committerwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-04-17 19:43:27 +0000
commitcc8165ad232263b8cf9b20697490564ed5e7d10f (patch)
treefac39839c6c8df6929f35332c96e398e316beb48 /lib
parent8399471902ce719c273da3775159f69bd1e13058 (diff)
Wed Apr 18 04:37:51 2001 Wakou Aoyama <wakou@fsinet.or.jp>
* lib/cgi.rb: CGI::Cookie: no use PATH_INFO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/cgi.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index fcf8c006e5..cfbdab8686 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -185,10 +185,10 @@ class CGI
CR = "\015"
LF = "\012"
EOL = CR + LF
- VERSION = '2.1.3'
- RELEASE_DATE = '2001-03-18'
+ VERSION = '2.1.4'
+ RELEASE_DATE = '2001-04-18'
VERSION_CODE = 214
- RELEASE_CODE = 20010318
+ RELEASE_CODE = 20010418
REVISION = '$Id$'
NEEDS_BINMODE = true if /WIN/ni.match(RUBY_PLATFORM)
@@ -643,13 +643,9 @@ convert string charset, and set language to "ja".
# simple support for IE
if options["path"]
@path = options["path"]
- elsif ENV["REQUEST_URI"]
- @path = ENV["REQUEST_URI"].sub(/\?.*/n,'')
- if ENV["PATH_INFO"]
- @path = @path[0...@path.rindex(ENV["PATH_INFO"])]
- end
else
- @path = (ENV["SCRIPT_NAME"] or "")
+ %r|^(.*/)|.match(ENV["SCRIPT_NAME"])
+ @path = ($1 or "")
end
@domain = options["domain"]
@expires = options["expires"]