Skip to content

Commit

Permalink
Escape URL in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Jun 24, 2021
1 parent d9816ce commit d1577b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/app_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def test_get_nonexistent_widget

def test_get_xss_widget
with_generated_project do
get '/views/nowidget-<h1>.html'
get CGI.escape('/views/nowidget-<h1>.html')
assert_equal 200, last_response.status
assert_equal last_response.body, 'Drats! Unable to find a widget file named: nowidget-&lt;h1&gt; to render.'
end
Expand Down

0 comments on commit d1577b1

Please sign in to comment.