Permalink
Browse files

Call CGI::escapeHTML on response headers.

  • Loading branch information...
1 parent ce71023 commit 02ca78f0b1e49f7cdb5fcc0b0029cc53e3d67cfe @nealpoole nealpoole committed Jan 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/helpers/pretty_printing.rb
@@ -35,6 +35,7 @@ def pretty_print_xml(content)
end
def pretty_print_headers(content)
+ content = CGI::escapeHTML(content)
lines = content.split("\n").map do |line|
if line =~ /^(.+?):(.+)$/
"<span class='nt'>#{$1}</span>:<span class='s'>#{$2}</span>"

0 comments on commit 02ca78f

Please sign in to comment.