File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2020from __future__ import print_function
2121from roundup import version_check
2222from roundup .i18n import _
23+ from roundup .anypy .html import html_escape
2324from roundup .anypy .strings import s2b , StringIO
2425import 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#
You can’t perform that action at this time.
0 commit comments