Page MenuHomePhorge

D26021.1747561202.diff
No OneTemporary

D26021.1747561202.diff

diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php
--- a/src/view/page/PhabricatorStandardPageView.php
+++ b/src/view/page/PhabricatorStandardPageView.php
@@ -627,7 +627,7 @@
// of incorrectly-styled content.
$device_guess = 'device-desktop';
if (phutil_nonempty_string($agent)) {
- if (preg_match('@iPhone|iPod|(Android.*Chrome/[.0-9]* Mobile)@',
+ if (preg_match('@iPhone|iPod|(Android.*((Chrome/[.0-9]* Mobile)|(Mobile.*Firefox/[.0-9]*))))@',
$agent)) {
$device_guess = 'device-phone device';
} else if (preg_match('@iPad|(Android.*Chrome/)@', $agent)) {

File Metadata

Mime Type
text/plain
Expires
Sun, May 18, 09:40 (14 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1633167
Default Alt Text
D26021.1747561202.diff (665 B)

Event Timeline