Problem/Motivation
After updating to 7.x-1.0-alpha9 from 7.x-1.0-alpha8 the
we used in the titles to have a new line started being sanitized, i.e., it displays
instead of breaking the line.
This seems a consequence of the security fix, namely the introduction of check_plain in link.module:766.
I understand that this behaviour could be changed by setting $options['sanitize'] to false, however when using panels I cannot find anywhere to easily do this.
Example call trace when problem occurs:
Proposed resolution
I am not sure how/if this can be resolved but as work around I am using filter_xss($item, ['br']) instead of check_plain. Also considered filter_xss_admin.
Any ideas are welcome. Thanks in advance.
Comment | File | Size | Author |
---|---|---|---|
call_trace.png | 36.53 KB | vieira |
Comments
Comment #2
vieira CreditAttribution: vieira commented8119fa2 seems to fix the issue but all the title fields that previously worked fine as full_html must now be converted to some other format that does not have autop in the set of filters that check_markup executes.
Comment #3
plachYou could install the -dev version and change the "Text processing" option in the Title field from "Plain text" to "Filtered text (user selects text format)".
Comment #4
pifagorComment #5
pifagor