From 975b4f40b492ce0703ce3b66c87279f356f769b1 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Wed, 26 Feb 2020 11:24:43 -0700 Subject: [PATCH] Fix zip file names on Windows --- app/src/Handlers/ZipHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Handlers/ZipHandler.php b/app/src/Handlers/ZipHandler.php index 8da04a9..d743342 100644 --- a/app/src/Handlers/ZipHandler.php +++ b/app/src/Handlers/ZipHandler.php @@ -75,7 +75,7 @@ class ZipHandler $response->getBody()->write($tempFile->getContents()); - $filename = Collection::make(explode('/', $path))->last(); + $filename = Collection::make(explode(DIRECTORY_SEPARATOR, $path))->last(); return $response->withHeader('Content-Type', 'application/zip') ->withHeader('Content-Disposition', sprintf(