From cd8e10d609e1a0a427d2500fc81ef7d49c02229e Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 23 Jan 2007 09:27:57 +0000 Subject: [PATCH] * lib/cgi.rb (CGI::QueryExtension::read_multipart): use == instead of ===. [ruby-dev:30176] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/cgi.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e5fbdbd54b..56ea1b2c3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 23 18:26:12 2007 Yukihiro Matsumoto + + * lib/cgi.rb (CGI::QueryExtension::read_multipart): use == instead + of ===. [ruby-dev:30176] + Tue Jan 23 15:39:25 2007 NAKAMURA Usaku * Makefile.in, common.mk, configure.in, */{Makefile.sub, configure.bat, diff --git a/lib/cgi.rb b/lib/cgi.rb index 440d3bef90..5f6876ce1d 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -1061,7 +1061,7 @@ class CGI params[name] = [body] end break if buf.size == 0 - break if content_length === -1 + break if content_length == -1 end raise EOFError, "bad boundary end of body part" unless boundary_end=~/--/