If l() is called with the option 'HTML' => TRUE, then the text is not run through check_plain. This does however mean that callers need to sanitize their data in advance. We should add documentation to the docbook block explaining this.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 1179582-l_html_security_documentation_9.diff | 903 bytes | dalin |
| #6 | 1179582-l_html_security_documentation_6.diff | 904 bytes | dalin |
| #2 | 1179582-l_html_security_documentation.diff | 892 bytes | dalin |
Comments
Comment #1
dalinI should add that this is important because this is possibly the #1 security mistake that people make in custom code/themes.
Comment #2
dalinComment #3
dalinComment #4
jhodgdonI applaud the idea of this patch... but it's not quite ready to go (very small problem): there are two spaces between the previous text and the text you added. There should only be one.
The wording also seems slightly awkward to me, but I guess it is OK. I think it just doesn't flow well from the previous sentences... if you can improve it, that would be good!
Comment #5
jhodgdonfix typo in tag
Comment #6
dalinLets see if I managed to hand-edit this patch file correctly. I've reworded the patch and removed the double spaces (I'm old-school when it comes to sentence spacing).
Comment #7
jhodgdonThanks -- I like this version much better. :)
8.x/7.x please...
Comment #8
droplet commenteda little space at end of line :)
Powered by Dreditor.
Comment #9
dalinFixed trailing space.
Comment #10
dalinComment #11
jhodgdondalin: normally you should not mark your own patches "reviewed and tested by the community", even if you only changed one space. It's always good to have an extra set of eyes look at it quickly.
Anyway, I've looked at it, and the space is fixed, the patch is otherwise the same as the one I RTBC'd before, so it should be RTBC. :) Sorry for missing the end-of-line space the first time.
8.x/7.x please...
Comment #12
webchickLooks like a good textual improvement.
Committed and pushed to 8.x and 7.x. Thanks!