Skip to content

Commit ef1aa7b

Browse files
committed
added patch for xss issue
1 parent 3285916 commit ef1aa7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/templatetags/rest_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,5 +322,5 @@ def break_long_headers(header):
322322
when possible (are comma separated)
323323
"""
324324
if len(header) > 160 and ',' in header:
325-
header = mark_safe('<br> ' + ', <br>'.join(header.split(',')))
325+
header = mark_safe('<br> ' + ', <br>'.join(escape(header).split(',')))
326326
return header

0 commit comments

Comments
 (0)