fix(backend): correctFilename changes dll to exe (#11710)

This commit is contained in:
anatawa12 2023-08-13 00:01:17 +09:00 committed by GitHub
parent 9eccdfbc63
commit 5aada8bbe2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,8 @@ export function correctFilename(filename: string, ext: string | null) {
// jpeg, tiffを同一視 // jpeg, tiffを同一視
dotExt === '.jpg' && filenameExt === '.jpeg' || dotExt === '.jpg' && filenameExt === '.jpeg' ||
dotExt === '.tif' && filenameExt === '.tiff' || dotExt === '.tif' && filenameExt === '.tiff' ||
// dllもexeもportable executableなので判定が正しく行われない
dotExt === '.exe' && filenameExt === '.dll' ||
// 圧縮形式っぽければ下手に拡張子を変えない // 圧縮形式っぽければ下手に拡張子を変えない
// https://github.com/misskey-dev/misskey/issues/11482 // https://github.com/misskey-dev/misskey/issues/11482