Skip to content

Commit c730f96

Browse files
committed
Convert cgi.escape to use html_escape from roundup.anypy.html
Update for vendoring of cgi.
1 parent ac47d43 commit c730f96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontends/roundup.cgi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from __future__ import print_function
2121
from roundup import version_check
2222
from roundup.i18n import _
23+
from roundup.anypy.html import html_escape
2324
from roundup.anypy.strings import s2b, StringIO
2425
import sys, time
2526

@@ -181,7 +182,7 @@ def main(out, err):
181182
request.send_response(404)
182183
request.send_header('Content-Type', 'text/html')
183184
request.end_headers()
184-
out.write(s2b('Not found: %s'%cgi.escape(client.path)))
185+
out.write(s2b('Not found: %s'%html_escape(client.path)))
185186

186187
else:
187188
from roundup.anypy import urllib_
@@ -196,7 +197,7 @@ def main(out, err):
196197
w(s2b(_('<li><a href="%(tracker_url)s/index">%(tracker_name)s</a>\n')%{
197198
'tracker_url': os.environ['SCRIPT_NAME']+'/'+
198199
urllib_.quote(tracker),
199-
'tracker_name': cgi.escape(tracker)}))
200+
'tracker_name': html_escape(tracker)}))
200201
w(s2b(_('</ol></body></html>')))
201202

202203
#

0 commit comments

Comments
 (0)