diff options
Diffstat (limited to 'lib/rack/request.rb')
-rw-r--r-- | lib/rack/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/request.rb b/lib/rack/request.rb index 5bf3eb17..e2d2bb56 100644 --- a/lib/rack/request.rb +++ b/lib/rack/request.rb @@ -337,7 +337,7 @@ module Rack # Fix for Safari Ajax postings that always append \0 # form_vars.sub!(/\0\z/, '') # performance replacement: - form_vars.slice!(-1) if form_vars[-1] == ?\0 + form_vars.slice!(-1) if form_vars.end_with?("\0") set_header RACK_REQUEST_FORM_VARS, form_vars set_header RACK_REQUEST_FORM_HASH, parse_query(form_vars, '&') |