fix(backend): correctFilename changes dll to exe (#11710)
This commit is contained in:
parent
9eccdfbc63
commit
5aada8bbe2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue