plugin blog import dotclear: repalce deprecated cgi by html
This commit is contained in:
parent
33edd87271
commit
254554de99
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ from twisted.internet import threads
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
import itertools
|
import itertools
|
||||||
import time
|
import time
|
||||||
import cgi
|
import html
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -188,7 +188,7 @@ class DotclearParser(object):
|
||||||
# we don't use atom:uri because it's used for jid in XMPP
|
# we don't use atom:uri because it's used for jid in XMPP
|
||||||
content = '{}\n<hr>\n<a href="{}">author website</a>'.format(
|
content = '{}\n<hr>\n<a href="{}">author website</a>'.format(
|
||||||
comment["comment_content"],
|
comment["comment_content"],
|
||||||
cgi.escape(comment["comment_site"]).replace('"', "%22"),
|
html.escape(comment["comment_site"]).replace('"', "%22"),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
content = comment["comment_content"]
|
content = comment["comment_content"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue