Thomas Lotze wrote:
Wouldn't a check like
if content_type.split(';', 1) in ('text/html', 'text/xml'):
be more appropriate?
Probably. Remember, zc.resourcelibrary's HTML injection code is a hack
-- a necessary hack, but a hack none the less. I can say that because I
did it. ;)
Feel free to make the change you outlined, especially if this is causing
you to get incorrect results in one of your apps.
Also, does case matter here? Perhaps a .lower() should be added as well.
Senior Software Engineer
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -