Skip to content

Commit 19660aa

Browse files
authored
Update Sprunje.php
Fix for #893 Should prevent file names from exceeding maximum allowed.
1 parent d312d1f commit 19660aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/sprinkles/core/src/Sprunje/Sprunje.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function toResponse(Response $response)
190190
// Prepare response
191191
$settings = http_build_query($this->options);
192192
$date = Carbon::now()->format('Ymd');
193-
$response = $response->withAddedHeader('Content-Disposition', "attachment;filename=$date-{$this->name}-$settings.csv");
193+
$response = $response->withAddedHeader('Content-Disposition', "attachment;filename={$this->name}.csv");
194194
$response = $response->withAddedHeader('Content-Type', 'text/csv; charset=utf-8');
195195

196196
return $response->write($result);

0 commit comments

Comments
 (0)