Merge pull request #14 from sigman78/sigman/fix-windows-path

fix: windows path issue
This commit is contained in:
WhitelightSEO
2026-02-22 13:10:20 +01:00
committed by GitHub

View File

@@ -57,7 +57,7 @@ class AssetManager {
if (fileId.length > 200) return null;
const backup = this.backupPath;
const parts = fileId.split("/").filter(Boolean);
const parts = fileId.split("/").filter(Boolean).map((p) => this.windowsSanitize(p));
let dirPath;
let filePath;
@@ -75,9 +75,6 @@ class AssetManager {
}
}
dirPath = this.windowsSanitize(dirPath);
filePath = this.windowsSanitize(filePath);
return { dirPath, filePath };
}