1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix serving of theme files on Windows

Fixes #3097
This commit is contained in:
Nick O'Leary 2021-09-29 17:59:25 +01:00
parent b427eca21f
commit ce87abe96e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -77,7 +77,7 @@ function serveFilesFromTheme(themeValue, themeApp, directory, baseDirectory) {
let fullPath = array[i];
if (baseDirectory) {
fullPath = path.resolve(baseDirectory,array[i]);
if (fullPath.indexOf(baseDirectory) !== 0) {
if (fullPath.indexOf(path.resolve(baseDirectory)) !== 0) {
continue;
}
}