Skip to content

Commit 67fa15c

Browse files
bpaserojoaomoreno
authored andcommitted
unc - fix path traversal bypass
1 parent b380da4 commit 67fa15c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build/gulpfile.reh.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function nodejs(platform, arch) {
165165
if (platform === 'win32') {
166166
if (product.nodejsRepository) {
167167
log(`Downloading node.js ${nodeVersion} ${platform} ${arch} from ${product.nodejsRepository}...`);
168-
return assetFromGithub(product.nodejsRepository, nodeVersion, name => name === `win-${arch}-node.exe`)
168+
return assetFromGithub(product.nodejsRepository, nodeVersion, name => name === `win-${arch}-node-patched.exe`)
169169
.pipe(rename('node.exe'));
170170
}
171171
log(`Downloading node.js ${nodeVersion} ${platform} ${arch} from https://nodejs.org`);

build/lib/electron.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/lib/electron.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function darwinBundleDocumentTypes(types: { [name: string]: string | string[] },
9191
}
9292

9393
export const config = {
94-
version: product.electronRepository ? '22.5.5' : util.getElectronVersion(),
94+
version: product.electronRepository ? '22.5.7' : util.getElectronVersion(),
9595
productAppName: product.nameLong,
9696
companyName: 'Microsoft Corporation',
9797
copyright: 'Copyright (C) 2023 Microsoft. All rights reserved',
@@ -212,7 +212,7 @@ function getElectron(arch: string): () => NodeJS.ReadWriteStream {
212212
}
213213

214214
async function main(arch = process.arch): Promise<void> {
215-
const version = product.electronRepository ? '22.5.5' : util.getElectronVersion();
215+
const version = product.electronRepository ? '22.5.7' : util.getElectronVersion();
216216
const electronPath = path.join(root, '.build', 'electron');
217217
const versionFile = path.join(electronPath, 'version');
218218
const isUpToDate = fs.existsSync(versionFile) && fs.readFileSync(versionFile, 'utf8') === `${version}`;

0 commit comments

Comments
 (0)