Skip to content

Commit

Permalink
Fix missing encoding of backslash in environment variable values
Browse files Browse the repository at this point in the history
- Resolves microsoft#240539
  • Loading branch information
abrahan-munro committed Feb 13, 2025
1 parent 2ddbc99 commit ab09b2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class MergedEnvironmentVariableCollection implements IMergedEnvironmentVa
}

private _encodeColons(value: string): string {
return value.replaceAll(':', '\\x3a');
return value.replaceAll('\\', '\\\\').replaceAll(':', '\\x3a');
}

diff(other: IMergedEnvironmentVariableCollection, scope: EnvironmentVariableScope | undefined): IMergedEnvironmentVariableCollectionDiff | undefined {
Expand Down

0 comments on commit ab09b2a

Please sign in to comment.