mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Improve filename encoding for miscellaneous old browsers
This commit is contained in:
parent
c3fe8d265b
commit
c9c4d7cda1
2 changed files with 21 additions and 1 deletions
|
|
@ -303,14 +303,22 @@ class UA
|
|||
{
|
||||
$output_format = 'rfc5987';
|
||||
}
|
||||
elseif ($browser->browser === 'Edge')
|
||||
{
|
||||
$output_format = 'rfc5987';
|
||||
}
|
||||
elseif ($browser->browser === 'IE')
|
||||
{
|
||||
$output_format = 'old_ie';
|
||||
}
|
||||
else
|
||||
elseif ($browser->browser === 'Android' || $browser->browser === 'Chrome' || $browser->browser === 'Safari')
|
||||
{
|
||||
$output_format = 'raw';
|
||||
}
|
||||
else
|
||||
{
|
||||
$output_format = 'old_ie';
|
||||
}
|
||||
|
||||
// Clean the filename.
|
||||
$filename = Filters\FilenameFilter::clean($filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue