forked from shaba/openuds
Error page was not displayed correctly
This commit is contained in:
parent
b2a067300c
commit
d02974ad87
@ -115,7 +115,7 @@ def errorView(request: 'HttpRequest', errorCode: int) -> HttpResponseRedirect:
|
|||||||
if code != 0:
|
if code != 0:
|
||||||
errStr += ' (code {0:04X})'.format(code)
|
errStr += ' (code {0:04X})'.format(code)
|
||||||
|
|
||||||
errStr = codecs.encode(str(errStr), 'base64').decode().replace('\n', '')
|
errStr = codecs.encode(str(errStr).encode(), 'base64').decode().replace('\n', '')
|
||||||
|
|
||||||
logger.debug('Redirection to error view with %s', errStr)
|
logger.debug('Redirection to error view with %s', errStr)
|
||||||
return HttpResponseRedirect(reverse('page.error', kwargs={'err': errStr}))
|
return HttpResponseRedirect(reverse('page.error', kwargs={'err': errStr}))
|
||||||
|
Loading…
Reference in New Issue
Block a user