Skip to content

Commit 558e126

Browse files
authored
UNC host allow list should be case insensitive (fix microsoft#182277) (microsoft#182757)
* UNC host allow list should be case insensitive (fix microsoft#182277) * only use `toLowerCase()`
1 parent ced29a4 commit 558e126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/base/node/unc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
const allowlist = processUNCHostAllowlist();
6363
if (allowlist) {
6464
if (typeof allowedHost === 'string') {
65-
allowlist.add(allowedHost);
65+
allowlist.add(allowedHost.toLowerCase()); // UNC hosts are case-insensitive
6666
} else {
6767
for (const host of toSafeStringArray(allowedHost)) {
68-
allowlist.add(host);
68+
addUNCHostToAllowlist(host);
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)