mirror of https://github.com/node-red/node-red.git
Merge pull request #3154 from node-red/fix-windows-themes
Fix serving of theme files on Windowspull/3155/head
commit
1b38e2eedf
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue