Revert "Fix filename encoding for Android 10 webview #1251"

이 패치는 효과가 없는 것으로 밝혀졌으므로 취소함
짧은주소 다운로드 기능으로 대체함
This commit is contained in:
Kijin Sung 2020-03-15 00:56:15 +09:00
parent 5ecc345541
commit 9b4b07b29d
2 changed files with 2 additions and 23 deletions

View file

@ -228,12 +228,6 @@ class UA
return $result;
}
}
if ($result->os === 'Android' && preg_match('#^AndroidDownloadManager/([0-9])#', $ua, $matches))
{
$result->browser = 'Android';
$result->version = $matches[1];
return $result;
}
if (preg_match('#Edge/([0-9]+\\.)#', $ua, $matches))
{
$result->browser = 'Edge';
@ -341,14 +335,8 @@ class UA
// Get the browser name and version.
$browser = self::getBrowserInfo($ua);
// Get the Android version.
if ($browser->os === 'Android')
{
$android_version = preg_match('/Android ([0-9]+)/', $ua, $matches) ? intval($matches[1]) : 0;
}
// Find the best format that this browser supports.
if ($browser->browser === 'Chrome' && $browser->version >= 11 && !$browser->is_webview)
if ($browser->browser === 'Chrome' && $browser->version >= 11 & !$browser->is_webview)
{
$output_format = 'rfc5987';
}
@ -374,14 +362,7 @@ class UA
}
elseif ($browser->browser === 'Android' || $browser->browser === 'Whale' || $browser->is_webview)
{
if ($android_version >= 10)
{
$output_format = 'rfc5987';
}
else
{
$output_format = 'raw';
}
$output_format = 'raw';
}
elseif ($browser->browser === 'Chrome' || $browser->browser === 'Safari')
{