Skip to content

Commit 5be9a5c

Browse files
authored
Fixed default trailing slash
1 parent 878a8e4 commit 5be9a5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/Files/UploadedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public function isValid(): bool
400400
*/
401401
public function store(string $folderName = null, string $fileName = null): string
402402
{
403-
$folderName = $folderName ?? date('Ymd') . DIRECTORY_SEPARATOR;
403+
$folderName = rtrim($folderName ?? date('Ymd'), '/') . '/' ;
404404
$fileName = $fileName ?? $this->getRandomName();
405405

406406
// Move the uploaded file to a new location.

0 commit comments

Comments
 (0)