From c58a1f14760fa30e749079cc53f0e541f423e7be Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Tue, 6 Jun 2017 03:37:19 -0400 Subject: [PATCH] Revert "Issue #2853160 by hgoto, RenatoG: Variable $name is defined but not used in file_get_content_headers()" This reverts commit f72778cff50edf4b0b3ed61185ea6b454a1a4ca4. --- includes/file.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/file.inc b/includes/file.inc index fafc33da53a..6a580c3ef86 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -2563,6 +2563,7 @@ function file_directory_temp() { * An associative array of headers, as expected by file_transfer(). */ function file_get_content_headers($file) { + $name = mime_header_encode($file->filename); $type = mime_header_encode($file->filemime); return array(