Skip to content

Commit f4b6f5c

Browse files
committed
also unquote url in error page
1 parent 58de00a commit f4b6f5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/pydoc.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2775,7 +2775,7 @@ def html_error(url, exc):
27752775
heading = html.heading('Error')
27762776
contents = '<br>'.join(html.escape(line) for line in
27772777
format_exception_only(type(exc), exc))
2778-
contents = heading + html.bigsection(html.escape(url), 'error', contents)
2778+
contents = heading + html.bigsection(html.escape(urllib.parse.unquote(url)), 'error', contents)
27792779
return "Error - %s" % url, contents
27802780

27812781
def get_html_page(url):

0 commit comments

Comments
 (0)