1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-06-23 07:21:38 +03:00

Fixed local_secure_restricted preventing attachment uploads

Due to option name change and therefore lack of handling.
Added test case to cover.
This commit is contained in:
Dan Brown
2022-09-02 14:40:17 +01:00
parent 092b6d6378
commit c76b5e2ec4
2 changed files with 16 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class AttachmentService
// Change to our secure-attachment disk if any of the local options
// are used to prevent escaping that location.
if ($storageType === 'local' || $storageType === 'local_secure' || $storageType === 'local_secure_with_permissions') {
if ($storageType === 'local' || $storageType === 'local_secure' || $storageType === 'local_secure_restricted') {
$storageType = 'local_secure_attachments';
}