diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-24 05:41:07 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-24 05:41:07 +0000 |
commit | 386d9b3606fb52d8c1e9530e9bb899e7f1459c52 (patch) | |
tree | 5e90eb8d7d6d80d7ee82f2cece2315301e386216 /lib | |
parent | 3df02fef47b88d0c31723126c4f644d0c665f950 (diff) | |
download | ruby-386d9b3606fb52d8c1e9530e9bb899e7f1459c52.tar.gz ruby-386d9b3606fb52d8c1e9530e9bb899e7f1459c52.tar.xz ruby-386d9b3606fb52d8c1e9530e9bb899e7f1459c52.zip |
* lib/cgi/session.rb (CGI::Session::FileStore#initialize): untaint
session id after check. (backported from HEAD)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cgi/session.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index 0bc10d013..a5afb7e3e 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -364,7 +364,7 @@ class CGI unless check_id(id) raise ArgumentError, "session_id `%s' is invalid" % id end - @path = dir+"/"+prefix+id + @path = dir+"/"+prefix+id.dup.untaint unless File::exist? @path @hash = {} end |