Merge branch 'MDL-32889-master' of https://github.com/mackensen/moodle
This commit is contained in:
@@ -152,7 +152,7 @@ function user_download_csv($fields) {
|
||||
$filename = clean_filename(get_string('users').'.csv');
|
||||
|
||||
header("Content-Type: application/download\n");
|
||||
header("Content-Disposition: attachment; filename=$filename");
|
||||
header("Content-Disposition: attachment; filename=\"$filename\"");
|
||||
header("Expires: 0");
|
||||
header("Cache-Control: must-revalidate,post-check=0,pre-check=0");
|
||||
header("Pragma: public");
|
||||
|
||||
+1
-1
@@ -566,7 +566,7 @@ function print_log_csv($course, $user, $date, $order='l.time DESC', $modname,
|
||||
$filename = 'logs_'.userdate(time(),get_string('backupnameformat', 'langconfig'),99,false);
|
||||
$filename .= '.txt';
|
||||
header("Content-Type: application/download\n");
|
||||
header("Content-Disposition: attachment; filename=$filename");
|
||||
header("Content-Disposition: attachment; filename=\"$filename\"");
|
||||
header("Expires: 0");
|
||||
header("Cache-Control: must-revalidate,post-check=0,pre-check=0");
|
||||
header("Pragma: public");
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
|
||||
function HeaderingExcel($filename) {
|
||||
header("Content-type: application/vnd.ms-excel");
|
||||
header("Content-Disposition: attachment; filename=$filename" );
|
||||
header("Content-Disposition: attachment; filename=\"$filename\"" );
|
||||
header("Expires: 0");
|
||||
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
|
||||
header("Pragma: public");
|
||||
@@ -87,4 +87,4 @@
|
||||
//$worksheet2->insert_bitmap(0, 0, "some.bmp",10,10);
|
||||
|
||||
$workbook->close();
|
||||
?>
|
||||
?>
|
||||
|
||||
+1
-1
@@ -1801,7 +1801,7 @@ function send_temp_file($path, $filename, $pathisstring=false) {
|
||||
$filename = urlencode($filename);
|
||||
}
|
||||
|
||||
header('Content-Disposition: attachment; filename='.$filename);
|
||||
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
||||
if (strpos($CFG->wwwroot, 'https://') === 0) { //https sites - watch out for IE! KB812935 and KB316431
|
||||
header('Cache-Control: max-age=10');
|
||||
header('Expires: '. gmdate('D, d M Y H:i:s', 0) .' GMT');
|
||||
|
||||
+1
-1
@@ -2659,7 +2659,7 @@ function data_export_csv($export, $delimiter_name, $dataname, $count, $return=fa
|
||||
$filename .= '.csv';
|
||||
if (empty($return)) {
|
||||
header("Content-Type: application/download\n");
|
||||
header("Content-Disposition: attachment; filename=$filename");
|
||||
header("Content-Disposition: attachment; filename=\"$filename\"");
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate,post-check=0,pre-check=0');
|
||||
header('Pragma: public');
|
||||
|
||||
@@ -168,6 +168,6 @@ function feedback_get_xml_data($feedbackid) {
|
||||
|
||||
function feedback_send_xml_data($data, $filename) {
|
||||
@header('Content-Type: application/xml; charset=UTF-8');
|
||||
@header('Content-Disposition: attachment; filename='.$filename);
|
||||
@header('Content-Disposition: attachment; filename="'.$filename.'"');
|
||||
print($data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user