From e70fafdf4ab068d427578ca949a67a01253ab363 Mon Sep 17 00:00:00 2001 From: Eugene Date: Thu, 7 May 2026 03:06:40 +0200 Subject: [PATCH] remove control characters from dropped paths --- tabby-electron/src/pathDrop.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tabby-electron/src/pathDrop.ts b/tabby-electron/src/pathDrop.ts index 1f96c918..9b39a696 100644 --- a/tabby-electron/src/pathDrop.ts +++ b/tabby-electron/src/pathDrop.ts @@ -20,6 +20,7 @@ export class PathDropDecorator extends TerminalDecorator { } private injectPath (terminal: BaseTerminalTabComponent, path: string) { + path = path.replace(/[\x00-\x1F\x7F]/g, '') if (path.includes(' ')) { path = `"${path}"` }