plugin blog import dotclear: repalce deprecated cgi by html

This commit is contained in:
Goffi 2024-11-20 14:35:09 +01:00
commit 254554de99

View file

@ -28,7 +28,7 @@ from twisted.internet import threads
from collections import OrderedDict
import itertools
import time
import cgi
import html
import os.path
@ -188,7 +188,7 @@ class DotclearParser(object):
# 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"),
)
else:
content = comment["comment_content"]