Skip to content

Commit a8a0aec

Browse files
committed
html.escape(string, quote=...) sets quote to True not False by
default. python2 cgi.escape has quote set to false by default. Set quote to false to match py2 semantics here.
1 parent b2ea2db commit a8a0aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def initialiseSecurity(security):
7373

7474
def add_message(msg_list, msg, escape=True):
7575
if escape:
76-
msg = html_escape(msg).replace('\n', '<br />\n')
76+
msg = html_escape(msg, quote=False).replace('\n', '<br />\n')
7777
else:
7878
msg = msg.replace('\n', '<br />\n')
7979
msg_list.append (msg)

0 commit comments

Comments
 (0)