Skip to content

Commit

Permalink
UNC host allow list should be case insensitive (fix #182277)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed May 17, 2023
1 parent 327bf4d commit 951dbef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/base/node/unc.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@
if (allowlist) {
if (typeof allowedHost === 'string') {
allowlist.add(allowedHost);
allowlist.add(allowedHost.toLowerCase()); // UNC hosts are case-insensitive
} else {
for (const host of toSafeStringArray(allowedHost)) {
allowlist.add(host);
addUNCHostToAllowlist(host);
}
}
}
Expand Down

0 comments on commit 951dbef

Please sign in to comment.