Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
file system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Sep 2015 at 12:23 UTC
Updated:
23 Sep 2015 at 00:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottUsing the
pretags means that we don't have to use thenl2br().Comment #4
catchMuch better.
Comment #5
lauriiiI tested this also manually and this seemed to fix the problem.
Comment #6
xjmComment #7
xjmNice, the updated code seems cleaner anyway.
Note that when testing manually, it's always valuable to document exactly what was tested and what the specific results were. "I tested manually and it fixes the problem" doesn't convey sufficient information for reviewers.
I tested manually with these steps:
settings.phpto point to a non-existent directory:/admin/reports/status. (Triggers the writing of the log message.)/admin/reports/dblogand click on the "Security warning" log message.Attached screenshots show the double-escaping (HEAD) and the expected single escaping (with the patch):

Comment #8
xjmAnd, committed and pushed to 8.0.x. Thanks!