Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 5804:8f50e00532e7
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 12 Jun 2019 17:26:02 -0400 |
| parents | 0e6d45413e88 |
| children | 883c9e90b403 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Tue Jun 11 22:42:27 2019 -0400 +++ b/roundup/cgi/client.py Wed Jun 12 17:26:02 2019 -0400 @@ -73,7 +73,7 @@ def add_message(msg_list, msg, escape=True): if escape: - msg = html_escape(msg).replace('\n', '<br />\n') + msg = html_escape(msg, quote=False).replace('\n', '<br />\n') else: msg = msg.replace('\n', '<br />\n') msg_list.append (msg)
