plone / plone.protect

HTTP protection utilities for the Plone CMS
https://pypi.org/project/plone.protect/
7 stars 8 forks source link

Html must contain "body", otherwise plone.protect breaks. #57

Closed jensens closed 7 years ago

jensens commented 7 years ago

In https://github.com/plone/plone.protect/blob/master/plone/protect/auto.py#L345 there must be at least one body tag in the HTML. So we have disabled diazo by using a theme.html reduced to just <html></html> and a rules.xml which copy htmls attributes and children over. This makes sense together with site-layouts.

Since the code expects ``a body this breaks.

jensens commented 7 years ago

looks like this is kind of a dup of #15, just here it broke.