-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed ESI parsing error with turpentine #2987
Conversation
If the CDATA markers are removed doesn't everything need to be htmlescaped? E.g. |
AFAIK, CDATA is required only for XML parsers since they consider any appearance of Also see: https://stackoverflow.com/a/66865 |
There are a lot of answers there and I'm still confused as to what's "best" and it probably depends on your opening tag as well.. For the purpose of keeping your PR to one issue and not conflating another I think it would be best to separate the CDATA discussion from this pull request by reverting the CDATA change so it doesn't hold up your PR. Then if CDATA should be removed we could remove them everywhere, or just leave them and not fret over it. |
app/design/frontend/base/default/template/customer/address/book.phtml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've re-added CDATA as per the discussion so we can approve it and merge it
* Fix esi parsing with turpentine * re-added CDATA --------- Co-authored-by: Fabrizio Balliano <[email protected]>
merged and cherrypicked to v20 |
Oh my bad. The CDATA was not removed in app/design/frontend/base/default/template/customer/address/book.phtml! |
Description
With Nexcess Magento Turpentine for Varnish, sometimes there is a strange bug with ESI processing (ESI is not processed).
Example:
window.location='https://.../fr/customer/address/delete/form_key/<esi:include src='http://.../fr/turpentine/esi/getFormKey/ttl/86400/method/esi/scope/global/access/private/' />/id/'+addressId;
In #2682, the solution is to invert ' and ".
But in fact, this is right and wrong (this must be done from Turpentine side).
The real solution is to remove
CDATA
tags (https://stackoverflow.com/a/4504180/2980105).I think I have tested without and added them for the PR.
Contribution checklist