fixed encoding in flash messages, thanks Vlad

This commit is contained in:
Massimo Di Pierro committed 2012-05-28 13:23:40 -05:00
1 parent ac864ceaf4
commit 5001a0d16f
6 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -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
from admin import add_path_first, create_missing_folders, create_missing_app_folders
@@ -541,10 +542,9 @@ 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','')