From 9933600eaf3dfc7595fe6fa9c3cc86c186fd1342 Mon Sep 17 00:00:00 2001 From: Mike Russell Date: Mon, 15 Aug 2016 17:33:07 -0400 Subject: [PATCH] Minor change to FileName Getter I took off last character of filename without realizing. --- src/Response/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Response/File.php b/src/Response/File.php index bc332c4..69a089a 100644 --- a/src/Response/File.php +++ b/src/Response/File.php @@ -62,7 +62,7 @@ protected function extractFileName(){ foreach (explode("\r\n", $this->headers) as $header) { if (strpos($header, 'filename')!==FALSE){ - $fileName = substr($header, (strpos($header, "=")+1), -1); + $fileName = substr($header, (strpos($header, "=")+1)); $this->setFileName($fileName); } }