🐛 Fixed extention missmatching .mp4 as invalid

refs https://github.com/TryGhost/Toolbox/issues/120

- When a file name with an .mp4 extension was passed in it was mistakenly taken as an invalid extension. It is pretty valid!
- Fixing this bug allows for for duplicate file detection when uploading valid valies with extensions containing numbers
- Extensions that consiste only from numbers are still treated as invalid
This commit is contained in:
Naz 2021-11-09 15:18:28 +04:00
parent fb8005f6e2
commit ce63b87b2e
2 changed files with 5 additions and 5 deletions

View File

@ -126,7 +126,7 @@
"express-query-boolean": "2.0.0",
"express-session": "1.17.2",
"fs-extra": "10.0.0",
"ghost-storage-base": "0.0.6",
"ghost-storage-base": "1.0.0",
"glob": "7.2.0",
"got": "9.6.0",
"gscan": "4.10.1",

View File

@ -5229,10 +5229,10 @@ ghost-ignition@4.6.3, ghost-ignition@^4.2.4, ghost-ignition@^4.6.2:
prettyjson "1.2.1"
uuid "8.3.2"
ghost-storage-base@0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/ghost-storage-base/-/ghost-storage-base-0.0.6.tgz#b390e6a501af31ec8463aafa3286a25de6da08c8"
integrity sha512-7t77iWWZA1Pk7X5O9cemMRb+DDisljUN2NEd06GNZ+Q43DtCkfLuTkoj0KRkT8bJf2yapsaVtXu5sIRYql4g0Q==
ghost-storage-base@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/ghost-storage-base/-/ghost-storage-base-1.0.0.tgz#931289d310ad59fc80e2be01a81235cc3a76e75a"
integrity sha512-qIW6pny/wWKjrbRmXVNis9i7856AMR5/NZmnLTrKbA0KIEnA9K/fhkj7ISnSyTYfBv17sFsC23eJfvj6dDgZrQ==
dependencies:
moment "2.27.0"