py3 fixes for admin app
This commit is contained in:
+1
-1
@@ -482,7 +482,7 @@ def wsgibase(environ, responder):
|
||||
if request.ajax:
|
||||
if response.flash:
|
||||
http_response.headers['web2py-component-flash'] = \
|
||||
urllib2.quote(xmlescape(response.flash).replace('\n', ''))
|
||||
urllib2.quote(xmlescape(response.flash).replace(b'\n', b''))
|
||||
if response.js:
|
||||
http_response.headers['web2py-component-command'] = \
|
||||
urllib2.quote(response.js.replace('\n', ''))
|
||||
|
||||
Reference in New Issue
Block a user