mirror of
https://github.com/eugeny/tabby
synced 2026-08-25 15:26:36 +00:00
remove control characters from dropped paths
This commit is contained in:
@@ -20,6 +20,7 @@ export class PathDropDecorator extends TerminalDecorator {
|
||||
}
|
||||
|
||||
private injectPath (terminal: BaseTerminalTabComponent<any>, path: string) {
|
||||
path = path.replace(/[\x00-\x1F\x7F]/g, '')
|
||||
if (path.includes(' ')) {
|
||||
path = `"${path}"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user