Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed an unhandled condition where req.GET or req.POST could be nil i…

…f a URI

such as a=1&a[]=1 was parsed.
  • Loading branch information...
commit 8ff028d0ef197a7703bc934dd8e67244be790004 1 parent f66506d
Luke Jahnke lukejahnke authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/rack/showexceptions.rb
4 lib/rack/showexceptions.rb
@@ -277,7 +277,7 @@ def h(obj) # :nodoc:
277 277 <h2>Request information</h2>
278 278
279 279 <h3 id="get-info">GET</h3>
280   - <% unless req.GET.empty? %>
  280 + <% if req.GET and not req.GET.empty? %>
281 281 <table class="req">
282 282 <thead>
283 283 <tr>
@@ -299,7 +299,7 @@ def h(obj) # :nodoc:
299 299 <% end %>
300 300
301 301 <h3 id="post-info">POST</h3>
302   - <% unless req.POST.empty? %>
  302 + <% if req.POST and not req.POST.empty? %>
303 303 <table class="req">
304 304 <thead>
305 305 <tr>

0 comments on commit 8ff028d

Please sign in to comment.
Something went wrong with that request. Please try again.