From 5aada8bbe2e938aeeb742db9aca4ea5e2252ee8e Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sun, 13 Aug 2023 00:01:17 +0900 Subject: [PATCH] fix(backend): correctFilename changes dll to exe (#11710) --- packages/backend/src/misc/correct-filename.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/misc/correct-filename.ts b/packages/backend/src/misc/correct-filename.ts index 34cb458a2c..9130af44c3 100644 --- a/packages/backend/src/misc/correct-filename.ts +++ b/packages/backend/src/misc/correct-filename.ts @@ -43,6 +43,8 @@ export function correctFilename(filename: string, ext: string | null) { // jpeg, tiffを同一視 dotExt === '.jpg' && filenameExt === '.jpeg' || dotExt === '.tif' && filenameExt === '.tiff' || + // dllもexeもportable executableなので判定が正しく行われない + dotExt === '.exe' && filenameExt === '.dll' || // 圧縮形式っぽければ下手に拡張子を変えない // https://github.com/misskey-dev/misskey/issues/11482