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 <[email protected]> Authored: Tue Feb 7 12:33:16 2017 -0800 Committer: Michael Jumper <[email protected]> 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, '_'); }; /**
