diff --git a/core/modules/config/config.module b/core/modules/config/config.module index f58dff9..abc843e 100644 --- a/core/modules/config/config.module +++ b/core/modules/config/config.module @@ -65,8 +65,13 @@ function config_file_download($uri) { $scheme = file_uri_scheme($uri); $target = file_uri_target($uri); if ($scheme == 'temporary' && $target == 'config.tar.gz') { + $date = new DateTime(); + $date_string = $date->format('Y-m-d-H-i-s'); + $hostname = str_replace('.', '-', $_SERVER['HTTP_HOST']); + $filename = 'config' . '-' . $hostname . '-' . $date_string. '.tar.gz'; + $disposition = 'attachment; filename=' . $filename; return array( - 'Content-disposition' => 'attachment; filename="config.tar.gz"', + 'Content-disposition' => $disposition, ); } }