Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A9111013F for ; Mon, 18 Nov 2013 21:56:23 +0000 (UTC) Received: (qmail 11213 invoked by uid 500); 18 Nov 2013 21:56:23 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 11199 invoked by uid 500); 18 Nov 2013 21:56:23 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 11186 invoked by uid 99); 18 Nov 2013 21:56:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Nov 2013 21:56:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 06D7035EC1; Mon, 18 Nov 2013 21:56:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org Date: Mon, 18 Nov 2013 21:56:22 -0000 Message-Id: <7574cb27ba6248078fc7c1c911deeacf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/6] git commit: [#6889] use .text() instead of .html() to avoid html insertion of end-user input Updated Branches: refs/heads/cj/6837 0cbcbcf34 -> 5ecdd28fc (forced update) [#6889] use .text() instead of .html() to avoid html insertion of end-user input Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/3a82e9de Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3a82e9de Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3a82e9de Branch: refs/heads/cj/6837 Commit: 3a82e9de57a45d54888a0b84389a308fbc266887 Parents: 2f8d344 Author: Dave Brondsema Authored: Mon Nov 18 15:32:41 2013 +0000 Committer: Dave Brondsema Committed: Mon Nov 18 15:32:41 2013 +0000 ---------------------------------------------------------------------- Allura/allura/lib/widgets/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3a82e9de/Allura/allura/lib/widgets/forms.py ---------------------------------------------------------------------- diff --git a/Allura/allura/lib/widgets/forms.py b/Allura/allura/lib/widgets/forms.py index bf96445..4e1dae4 100644 --- a/Allura/allura/lib/widgets/forms.py +++ b/Allura/allura/lib/widgets/forms.py @@ -920,7 +920,7 @@ class NeighborhoodAddProjectForm(ForgeForm): }; $.getJSON('suggest_name', data, function(result){ $unixname_input.val(result.suggested_name); - $url_fragment.html(result.suggested_name); + $url_fragment.text(result.suggested_name); check_names(); }); } else { @@ -932,7 +932,7 @@ class NeighborhoodAddProjectForm(ForgeForm): manual = true; }); $unixname_input.keyup(function(){ - $url_fragment.html($unixname_input.val()); + $url_fragment.text($unixname_input.val()); delay(check_names, 500); }); });