Show More
@@ -25,7 +25,7 b' Original author and date, and relevant c' | |||||
25 | :license: GPLv3, see LICENSE.md for more details. |
|
25 | :license: GPLv3, see LICENSE.md for more details. | |
26 | """ |
|
26 | """ | |
27 |
|
27 | |||
28 |
import |
|
28 | import html | |
29 | import logging |
|
29 | import logging | |
30 |
|
30 | |||
31 | from tg import config, expose, request |
|
31 | from tg import config, expose, request | |
@@ -64,8 +64,7 b' class ErrorController(BaseController):' | |||||
64 | 'protocol': e.get('wsgi.url_scheme'), |
|
64 | 'protocol': e.get('wsgi.url_scheme'), | |
65 | 'host': e.get('HTTP_HOST'), } |
|
65 | 'host': e.get('HTTP_HOST'), } | |
66 | if resp: |
|
66 | if resp: | |
67 |
c.error_message = |
|
67 | c.error_message = html.escape(request.GET.get('code', str(resp.status))) | |
68 | str(resp.status))) |
|
|||
69 | c.error_explanation = self.get_error_explanation(resp.status_int) |
|
68 | c.error_explanation = self.get_error_explanation(resp.status_int) | |
70 | else: |
|
69 | else: | |
71 | c.error_message = _('No response') |
|
70 | c.error_message = _('No response') |
General Comments 0
You need to be logged in to leave comments.
Login now