fixed escaping of response.js, issue 1205, thanks max.morais.dmm
This commit is contained in:
@@ -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
@@ -577,9 +577,12 @@ def wsgibase(environ, responder):
|
|||||||
|
|
||||||
if request.cid:
|
if request.cid:
|
||||||
if response.flash:
|
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:
|
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
|
# store cookies in headers
|
||||||
|
|||||||
Reference in New Issue
Block a user