From ce63b87b2ed5634098e98dd33ce84d3d880b33f7 Mon Sep 17 00:00:00 2001 From: Naz Date: Tue, 9 Nov 2021 15:18:28 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20extention=20missmatching?= =?UTF-8?q?=20.mp4=20as=20invalid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 0b2d1b88c5..48492f4186 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index 7f0ba4dc4c..46bdc6bb87 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"