fixed escaping of response.js, issue 1205, thanks max.morais.dmm

This commit is contained in:
mdipierro
2012-12-06 23:02:09 -06:00
parent c574a97cad
commit 8f7b82fdb3
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.0 (2012-12-06 16:55:43) rc1
Version 2.3.0 (2012-12-06 23:01:24) rc1
+5 -2
View File
@@ -577,9 +577,12 @@ def wsgibase(environ, responder):
if request.cid:
if response.flash:
http_response.headers['web2py-component-flash'] = urllib2.quote(xmlescape(response.flash).replace('\n', ''))
http_response.headers['web2py-component-flash'] = \
urllib2.quote(xmlescape(response.flash)\
.replace('\n',''))
if response.js:
http_response.headers['web2py-component-command'] = response.js.replace('\n', '')
http_response.headers['web2py-component-command'] = \
urllib2.quote(response.js.replace('\n',''))
# ##################################################
# store cookies in headers