# HG changeset patch # User Kim Alvefur # Date 1644006130 -3600 # Node ID 68bd8ae9b8278185418ec0fa4b7411cf17dccb7f # Parent 28f6322fad5071150abfec9d98a55c29f6a77ef4 mod_pubsub_feeds: Allow but ignore XML comments and processing instructions This should allow but ignore them, which should be safe. diff -r 28f6322fad50 -r 68bd8ae9b827 mod_pubsub_feeds/mod_pubsub_feeds.lua --- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Fri Feb 04 16:25:23 2022 +0100 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Fri Feb 04 21:22:10 2022 +0100 @@ -26,7 +26,7 @@ local xmlns_atom = "http://www.w3.org/2005/Atom"; local function parse_feed(data) - local feed, err = parse_xml(data); + local feed, err = parse_xml(data, { allow_processing_instructions = true; allow_comments = true }); if not feed then return feed, err; end if feed.attr.xmlns == xmlns_atom then return feed;