Skip to content
Browse files

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...
1 parent f66506d commit 8ff028d0ef197a7703bc934dd8e67244be790004 @lukejahnke lukejahnke committed Aug 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rack/showexceptions.rb
View
4 lib/rack/showexceptions.rb
@@ -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>
@@ -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>

0 comments on commit 8ff028d

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