Skip to content

Instantly share code, notes, and snippets.

@takai
Created February 18, 2009 04:41
Show Gist options
  • Save takai/66189 to your computer and use it in GitHub Desktop.
Save takai/66189 to your computer and use it in GitHub Desktop.
diff --git a/merb-core/lib/merb-core/dispatch/request_parsers.rb b/merb-core/lib
/merb-core/dispatch/request_parsers.rb
index f04eb7a..071eb33 100644
--- a/merb-core/lib/merb-core/dispatch/request_parsers.rb
+++ b/merb-core/lib/merb-core/dispatch/request_parsers.rb
@@ -59,8 +59,8 @@ module Merb
status = input.read(boundary_size)
return {} if status == nil || status.empty?
raise ControllerExceptions::MultiPartParseError, "bad content body:\n'#{s
tatus}' should == '#{boundary + EOL}'" unless status == boundary + EOL
- # second argument to Regexp.quote is for KCODE
- rx = /(?:#{EOL})?#{Regexp.quote(boundary,'n')}(#{EOL}|--)/
+
+ rx = /(?:#{EOL})?#{Regexp.quote(boundary)}(#{EOL}|--)/
loop {
head = nil
body = ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment