superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grace...@apache.org
Subject [incubator-superset] branch master updated: [form-data] Quoting form data (#3701)
Date Tue, 24 Oct 2017 17:08:15 GMT
This is an automated email from the ASF dual-hosted git repository.

graceguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 9893847  [form-data] Quoting form data (#3701)
9893847 is described below

commit 9893847991850eb4410f15d515a7ec61d56f1659
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Tue Oct 24 10:08:08 2017 -0700

    [form-data] Quoting form data (#3701)
---
 superset/views/core.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index 8cd9a57..aca7714 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -12,6 +12,7 @@ import pickle
 import re
 import time
 import traceback
+from urllib import parse
 
 import sqlalchemy as sqla
 
@@ -946,7 +947,7 @@ class Superset(BaseSupersetView):
             .format(
                 viz_obj.datasource.type,
                 viz_obj.datasource.id,
-                json.dumps(viz_obj.form_data)
+                parse.quote(json.dumps(viz_obj.form_data)),
             )
         )
         if request.args.get("standalone") == "true":

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message