Permalink
Browse files

update comment to align with method

  • Loading branch information...
stevepiercy committed Sep 23, 2017
1 parent 11fd444 commit f67d8c770687d5ee82cc21e608c2daf5dbfd50f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/quick_tour/views/views.py
@@ -16,7 +16,7 @@ def home_view(request):
def hello_view(request):
name = request.params.get('name', 'No Name')
body = '<p>Hi %s, this <a href="/goto">redirects</a></p>'
# cgi.escape to prevent Cross-Site Scripting (XSS) [CWE 79]
# pyramid.compat.escape to prevent Cross-Site Scripting (XSS) [CWE 79]
return Response(body % escape(name))

0 comments on commit f67d8c7

Please sign in to comment.