You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by gr...@apache.org on 2017/10/24 17:08:15 UTC

[incubator-superset] branch master updated: [form-data] Quoting form data (#3701)

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 <45...@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" <co...@superset.apache.org>'].