mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +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.
|
||||
*/
|
||||
var sanitizeFilename = function sanitizeFilename(filename) {
|
||||
return filename.replace(/\/+/g, '_');
|
||||
return filename.replace(/[\\\/]+/g, '_');
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user