Skip to content

Commit

Permalink
fix: properly check part file sizes on upload
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Aug 14, 2024
1 parent eb944ea commit 1bec986
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ protected function isBlockablePath(IStorage $storage, string $path): bool {
return false;
}

if (preg_match('/\.ocTransferId\d+\.part$/i', $path)) {
return false;
}

// '', admin, 'files', 'path/to/file.txt'
$segment = explode('/', $fullPath, 4);

Expand All @@ -116,6 +112,7 @@ protected function isBlockablePath(IStorage $storage, string $path): bool {
}

return isset($segment[2]) && in_array($segment[2], [
'uploads',
'files',
'thumbnails',
'files_versions',
Expand Down

0 comments on commit 1bec986

Please sign in to comment.