Ticket #174 (closed defect: fixed)
Apostrophe incompatible with Symfony input escaping methods
| Reported by: | tboutell | Owned by: | tboutell |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.5 |
| Component: | apostrophePlugin | Version: | |
| Keywords: | Cc: | agilbert, dordille, techstuff@…, geoffd, | |
| Symfony version: | 1.4 |
Description
Apostrophe doesn't have an XSS problem, because we escape content ourselves in appropriate ways, but it is incompatible with Symfony's "escape all variables passed to templates" feature. We should address that by calling $sf_data->getRaw('variable') rather than accessing $variable in all cases where we need access to raw data in a template. We'll then be able to work with output escaping turned on in the demo, which we should switch to doing by default to demonstrate it's possible, decrease the risk we'll make XSS errors of our own in client sites and keep us aware of any issues that come up.

