Skip to content

Commit 7e7697f

Browse files
committed
Security fix n°2 - make chunk names safe too
See: b61c252
1 parent 4f1078b commit 7e7697f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resumable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function tmpChunkDir(string $identifier): string
344344
*/
345345
public function tmpChunkFilename(string $filename, int $chunkNumber): string
346346
{
347-
return $filename . '.' . str_pad((string) $chunkNumber, 4, '0', STR_PAD_LEFT);
347+
return $this->createSafeName($filename) . '.' . str_pad((string) $chunkNumber, 4, '0', STR_PAD_LEFT);
348348
}
349349

350350
public function createFileFromChunks(array $chunkFiles, string $destFile): bool

0 commit comments

Comments
 (0)