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 | |
| 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
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/cgi/session.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Aug 24 14:40:16 2004 Shugo Maeda <shugo@ruby-lang.org> + + * lib/cgi/session.rb (CGI::Session::FileStore#initialize): untaint + session id after check. (backported from HEAD) + Tue Aug 24 09:09:01 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): d2i 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 |
