Skip to content

Commit

Permalink
Fixed an unhandled condition where req.GET or req.POST could be nil i…
Browse files Browse the repository at this point in the history
…f a URI

such as a=1&a[]=1 was parsed.
  • Loading branch information
lukejahnke committed Aug 1, 2011
1 parent f66506d commit 8ff028d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/showexceptions.rb
Expand Up @@ -277,7 +277,7 @@ def h(obj) # :nodoc:
<h2>Request information</h2>
<h3 id="get-info">GET</h3>
<% unless req.GET.empty? %>
<% if req.GET and not req.GET.empty? %>
<table class="req">
<thead>
<tr>
Expand All @@ -299,7 +299,7 @@ def h(obj) # :nodoc:
<% end %>
<h3 id="post-info">POST</h3>
<% unless req.POST.empty? %>
<% if req.POST and not req.POST.empty? %>
<table class="req">
<thead>
<tr>
Expand Down

0 comments on commit 8ff028d

Please sign in to comment.