[Pkg-xmpp-devel] Bug#1084593: libervia-backend: removal of Python standard libraries in Python 3.13
Alexandre Detiste
alexandre.detiste at gmail.com
Sun Nov 17 13:18:34 GMT 2024
control: tag -1 + patch
Please consider this trivial patch
-import cgi
+import html
...
def comment_handler(self, headers, data, index):
comment = self.parseFields(headers, data)
if comment["comment_site"]:
# we don't use atom:uri because it's used for jid in XMPP
content = '{}\n<hr>\n<a href="{}">author website</a>'.format(
comment["comment_content"],
- cgi.escape(comment["comment_site"]).replace('"', "%22"),
+ html.escape(comment["comment_site"]).replace('"', "%22"),
)
More information about the Pkg-xmpp-devel
mailing list