Skip to content

Commit

Permalink
update comment to align with method
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy committed Sep 23, 2017
1 parent 11fd444 commit f67d8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/quick_tour/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down

0 comments on commit f67d8c7

Please sign in to comment.