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 20
20
from __future__ import print_function
21
21
from roundup import version_check
22
22
from roundup .i18n import _
23
+ from roundup .anypy .html import html_escape
23
24
from roundup .anypy .strings import s2b , StringIO
24
25
import sys , time
25
26
@@ -181,7 +182,7 @@ def main(out, err):
181
182
request .send_response (404 )
182
183
request .send_header ('Content-Type' , 'text/html' )
183
184
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 )))
185
186
186
187
else :
187
188
from roundup .anypy import urllib_
@@ -196,7 +197,7 @@ def main(out, err):
196
197
w (s2b (_ ('<li><a href="%(tracker_url)s/index">%(tracker_name)s</a>\n ' )% {
197
198
'tracker_url' : os .environ ['SCRIPT_NAME' ]+ '/' +
198
199
urllib_ .quote (tracker ),
199
- 'tracker_name' : cgi . escape (tracker )}))
200
+ 'tracker_name' : html_escape (tracker )}))
200
201
w (s2b (_ ('</ol></body></html>' )))
201
202
202
203
#
You can’t perform that action at this time.
0 commit comments