Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1D70B200D24 for ; Tue, 24 Oct 2017 19:08:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1C124160BDB; Tue, 24 Oct 2017 17:08:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6050F1609C8 for ; Tue, 24 Oct 2017 19:08:18 +0200 (CEST) Received: (qmail 93656 invoked by uid 500); 24 Oct 2017 17:08:17 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 93647 invoked by uid 99); 24 Oct 2017 17:08:17 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 17:08:17 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id C1AC081B54; Tue, 24 Oct 2017 17:08:15 +0000 (UTC) Date: Tue, 24 Oct 2017 17:08:15 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: [form-data] Quoting form data (#3701) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150886489500.4656.12359844927943272954@gitbox.apache.org> From: graceguo@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 18e9640d9976664b7e5681562cd2cbd5cc00055e X-Git-Newrev: 9893847991850eb4410f15d515a7ec61d56f1659 X-Git-Rev: 9893847991850eb4410f15d515a7ec61d56f1659 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Tue, 24 Oct 2017 17:08:19 -0000 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" '].