We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2da473c commit c729aa2Copy full SHA for c729aa2
rest_framework/templatetags/rest_framework.py
@@ -318,5 +318,5 @@ def break_long_headers(header):
318
when possible (are comma separated)
319
"""
320
if len(header) > 160 and ',' in header:
321
- header = mark_safe('<br> ' + ', <br>'.join(header.split(',')))
+ header = mark_safe('<br> ' + ', <br>'.join(escape(header).split(',')))
322
return header
0 commit comments