Skip to content

Commit

Permalink
Merge pull request #3 from gregmolnar/xss
Browse files Browse the repository at this point in the history
fix xss in r404 method
  • Loading branch information
zuk committed Jul 8, 2014
2 parents 92af44b + d335799 commit 58409f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendor/zuk-camping-2.0.20090429/lib/camping-unabridged.rb
Expand Up @@ -362,7 +362,8 @@ def redirect(*a)
#
# See: I
def r404(p)
P % "#{p} not found"
require 'cgi'
P % "#{CGI::escapeHTML(p)} not found"
end

# If there is a parse error in Camping or in your application's source code, it will not be caught
Expand Down

0 comments on commit 58409f6

Please sign in to comment.