mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUACAMOLE-196: Strip backslashes from stream download filenames.
This commit is contained in:
@@ -157,7 +157,7 @@ angular.module('rest').factory('tunnelService', ['$injector',
|
|||||||
* The sanitized filename.
|
* The sanitized filename.
|
||||||
*/
|
*/
|
||||||
var sanitizeFilename = function sanitizeFilename(filename) {
|
var sanitizeFilename = function sanitizeFilename(filename) {
|
||||||
return filename.replace(/\/+/g, '_');
|
return filename.replace(/[\\\/]+/g, '_');
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user