Merge branch 'MDL-51419-34' of https://github.com/snake/moodle into MOODLE_34_STABLE
This commit is contained in:
@@ -116,7 +116,7 @@ class MoodleExcelWorkbook {
|
||||
header('Pragma: no-cache');
|
||||
}
|
||||
|
||||
if (core_useragent::is_ie()) {
|
||||
if (core_useragent::is_ie() || core_useragent::is_edge()) {
|
||||
$filename = rawurlencode($filename);
|
||||
} else {
|
||||
$filename = s($filename);
|
||||
|
||||
+2
-2
@@ -2115,7 +2115,7 @@ function send_temp_file($path, $filename, $pathisstring=false) {
|
||||
}
|
||||
|
||||
// if user is using IE, urlencode the filename so that multibyte file name will show up correctly on popup
|
||||
if (core_useragent::is_ie()) {
|
||||
if (core_useragent::is_ie() || core_useragent::is_edge()) {
|
||||
$filename = urlencode($filename);
|
||||
}
|
||||
|
||||
@@ -2264,7 +2264,7 @@ function send_file($path, $filename, $lifetime = null , $filter=0, $pathisstring
|
||||
}
|
||||
|
||||
// if user is using IE, urlencode the filename so that multibyte file name will show up correctly on popup
|
||||
if (core_useragent::is_ie()) {
|
||||
if (core_useragent::is_ie() || core_useragent::is_edge()) {
|
||||
$filename = rawurlencode($filename);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user