tentative fix to ajax problem, thanks Vladyslav, needs test, may break flash=DIV()
This commit is contained in:
+2
-1
@@ -28,6 +28,7 @@ import socket
|
||||
import tempfile
|
||||
import random
|
||||
import string
|
||||
import urllib2
|
||||
|
||||
from fileutils import abspath, write_file, parse_version
|
||||
from settings import global_settings
|
||||
@@ -548,7 +549,7 @@ def wsgibase(environ, responder):
|
||||
if request.cid:
|
||||
if response.flash and not 'web2py-component-flash' in http_response.headers:
|
||||
http_response.headers['web2py-component-flash'] = \
|
||||
str(response.flash).replace('\n','')
|
||||
urllib2.quote(str(response.flash).replace('\n',''))
|
||||
if response.js and not 'web2py-component-command' in http_response.headers:
|
||||
http_response.headers['web2py-component-command'] = \
|
||||
response.js.replace('\n','')
|
||||
|
||||
Reference in New Issue
Block a user