Cgi.rb のファイル巳苳殺踉肢得処理

e$B$H$_$?$G$9!#e(B

CGI e$B$G%U%!%$%kL>Cf$K!Ve(B"e$B!W$d!Ve(B;e$B!W$r4^$`%U%!%$%k$re(B POST
e$B$9$k$H!"e(Bcgi.rb
e$B$,$=$l0J9_$NJ8;z$rMn$H$7$F$7$^$$$^$9!#e(B

cgi.rb.orig 2006-12-03 17:06:27.000000000 +0900
+++ cgi.rb 2007-01-25 00:26:02.000000000 +0900
@@ -1037,8 +1037,8 @@

     body.rewind
  •    /Content-Disposition:.* filename="?([^\";]*)"?/ni.match(head)
    
  • filename = ($1 or )
  •    /Content-Disposition:.* 
    

filename=(?:"((?:\.|[^"]))"|([^;]))/ni.match(head)

  • filename = ($1 or $2 or )
    if /Mac/ni.match(env_table[HTTP_USER_AGENT]) and
    /Mozilla/ni.match(env_table[HTTP_USER_AGENT]) and
    (not /MSIE/ni.match(env_table[HTTP_USER_AGENT]))

At Thu, 25 Jan 2007 00:34:56 +0900,
e$B$H$_$?$^$5$R$me(B wrote:

CGI e$B$G%U%!%$%kL>Cf$K!Ve(B"e$B!W$d!Ve(B;e$B!W$r4^$`%U%!%$%k$re(B POST e$B$9$k$H!"e(Bcgi.rb
e$B$,$=$l0J9_$NJ8;z$rMn$H$7$F$7$^$$$^$9!#e(B

e$B!!e(Btrunk e$B$He(B ruby_1_8 e$B$K<h$j9~$_$^$7$?!#e(B

cf. [ruby-dev:30240]


/
/__ __ Akinori.org / MUSHA.org
/ ) ) ) ) / FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp

Different eyes see different things,
Different hearts beat on different strings
But there are times for you and me when all such things agree