diff --git a/lib/excellib.class.php b/lib/excellib.class.php index ff382526cd8..ef612b4bde9 100644 --- a/lib/excellib.class.php +++ b/lib/excellib.class.php @@ -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); diff --git a/lib/filelib.php b/lib/filelib.php index 53f07db0c90..a8c844a2b1c 100644 --- a/lib/filelib.php +++ b/lib/filelib.php @@ -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); }