Skip to content

Commit f73201a

Browse files
committed
🐛 Avoid reading truncated property values having '='
Signed-off-by: Babak K. Shandiz <[email protected]>
1 parent 1f00afe commit f73201a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/platform/terminal/common/xterm/shellIntegrationAddon.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,11 @@ export class ShellIntegrationAddon extends Disposable implements IShellIntegrati
330330
return true;
331331
}
332332
case VSCodeOscPt.Property: {
333-
const [key, rawValue] = args[0].split('=');
334-
if (rawValue === undefined) {
333+
const [key, ...rawValues] = args[0].split('=');
334+
if (!rawValues.length) {
335335
return true;
336336
}
337+
const rawValue = rawValues.join('=');
337338
const value = this._deserializeMessage(rawValue);
338339
switch (key) {
339340
case 'Cwd': {

0 commit comments

Comments
 (0)