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 37453200C14 for ; Tue, 7 Feb 2017 21:45:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 35F6A160B3E; Tue, 7 Feb 2017 20:45:33 +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 7DA21160B32 for ; Tue, 7 Feb 2017 21:45:32 +0100 (CET) Received: (qmail 76427 invoked by uid 500); 7 Feb 2017 20:45:31 -0000 Mailing-List: contact commits-help@guacamole.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@guacamole.incubator.apache.org Delivered-To: mailing list commits@guacamole.incubator.apache.org Received: (qmail 76418 invoked by uid 99); 7 Feb 2017 20:45:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2017 20:45:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 50C2C18C401 for ; Tue, 7 Feb 2017 20:45:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id th1vzQ8jWNm8 for ; Tue, 7 Feb 2017 20:45:30 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id C86A65F473 for ; Tue, 7 Feb 2017 20:45:29 +0000 (UTC) Received: (qmail 69572 invoked by uid 99); 7 Feb 2017 20:44:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2017 20:44:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2F8F7DFBDB; Tue, 7 Feb 2017 20:44:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jmuehlner@apache.org To: commits@guacamole.incubator.apache.org Date: Tue, 07 Feb 2017 20:44:57 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] incubator-guacamole-client git commit: GUACAMOLE-196: Strip backslashes from stream download filenames. archived-at: Tue, 07 Feb 2017 20:45:33 -0000 Repository: incubator-guacamole-client Updated Branches: refs/heads/master d7b339137 -> 7fd7035a4 GUACAMOLE-196: Strip backslashes from stream download filenames. Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/0105b3e4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/0105b3e4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/0105b3e4 Branch: refs/heads/master Commit: 0105b3e4ecc0baa8c5ad0cd17f0405fb8e303ef2 Parents: d7b3391 Author: Michael Jumper Authored: Tue Feb 7 12:33:16 2017 -0800 Committer: Michael Jumper Committed: Tue Feb 7 12:36:04 2017 -0800 ---------------------------------------------------------------------- guacamole/src/main/webapp/app/rest/services/tunnelService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/0105b3e4/guacamole/src/main/webapp/app/rest/services/tunnelService.js ---------------------------------------------------------------------- diff --git a/guacamole/src/main/webapp/app/rest/services/tunnelService.js b/guacamole/src/main/webapp/app/rest/services/tunnelService.js index e736f82..11c2e92 100644 --- a/guacamole/src/main/webapp/app/rest/services/tunnelService.js +++ b/guacamole/src/main/webapp/app/rest/services/tunnelService.js @@ -157,7 +157,7 @@ angular.module('rest').factory('tunnelService', ['$injector', * The sanitized filename. */ var sanitizeFilename = function sanitizeFilename(filename) { - return filename.replace(/\/+/g, '_'); + return filename.replace(/[\\\/]+/g, '_'); }; /**