mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 02:34:19 -05: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