Skip to content

Commit

Permalink
fix(backend): correctFilename changes dll to exe (#11710)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Aug 12, 2023
1 parent 9eccdfb commit 5aada8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/misc/correct-filename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5aada8b

Please sign in to comment.