# Cgi.rb $B$N%U%!%$%kL\>\<hF@=hM}(B

**URL:** <https://www.ruby-forum.com/t/cgi-rb-b-n-u-kl-hf-hm-b/83243>\
**Category:** Development\
**Created:** [January 24, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/cgi-rb-b-n-u-kl-hf-hm-b/83243 "2007-01-24T16:37:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/u/SSSBSHS_SSSSS5SRSmS)\
**Post date:** [January 24, 2007, 4:37pm UTC](https://www.ruby-forum.com/t/cgi-rb-b-n-u-kl-hf-hm-b/83243/1 "2007-01-24T16:37:25Z")

</div>

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’]))

---

<div class="post-metadata">

**Author:** ![SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@SSSBSHS\_SSSSS5SRSmS](https://www.ruby-forum.com/u/SSSBSHS_SSSSS5SRSmS)\
**Post date:** [February 10, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/cgi-rb-b-n-u-kl-hf-hm-b/83243/2 "2007-02-10T23:50:08Z")

</div>

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](http://Akinori.org) / [MUSHA.org](http://MUSHA.org)  
/ ) ) ) ) / [FreeBSD.org](http://FreeBSD.org) / [Ruby-lang.org](http://Ruby-lang.org)  
Akinori MUSHA aka / (\_ / ( (\_\_( @ [iDaemons.org](http://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”
