diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-01 23:53:50 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-01 23:53:50 +0000 |
| commit | 55b05d379751e6da6a72f7a58fa0d07ba81f5862 (patch) | |
| tree | e802993291d0ba418f5fac6f27e80e43bc30cb9d /lib/cgi.rb | |
| parent | 882bca2a31886fbd1690891eb36aa8a8706730c0 (diff) | |
| download | ruby-55b05d379751e6da6a72f7a58fa0d07ba81f5862.tar.gz ruby-55b05d379751e6da6a72f7a58fa0d07ba81f5862.tar.xz ruby-55b05d379751e6da6a72f7a58fa0d07ba81f5862.zip | |
* eval.c (proc_invoke): nail down dyna_var node when Proc object
or continuation is created. [ruby-dev:24671]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
| -rw-r--r-- | lib/cgi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index b68ee803e..0fd0bc7cd 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1023,7 +1023,7 @@ class CGI content_length -= c.size end - buf = buf.sub(/\A((?:.|\n)*?)(?:#{EOL})?#{boundary}(#{EOL}|#{LF}|--)/n) do + buf = buf.sub(/\A((?:.|\n)*?)(?:[\r\n]{1,2})?#{boundary}([\r\n]{1,2}|--)/n) do body.print $1 if "--" == $2 content_length = -1 |
