Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4824985
D26021.1749322004.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
731 B
Referenced Files
None
Subscribers
None
D26021.1749322004.diff
View Options
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,8 +627,8 @@
// of incorrectly-styled content.
$device_guess = 'device-desktop';
if (phutil_nonempty_string($agent)) {
- if (preg_match('@iPhone|iPod|(Android.*Chrome/[.0-9]* Mobile)@',
- $agent)) {
+ 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)) {
$device_guess = 'device-tablet device';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 7, 18:46 (7 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1751122
Default Alt Text
D26021.1749322004.diff (731 B)
Attached To
Mode
D26021: Make User-Agent regex detect Firefox on Android
Attached
Detach File
Event Timeline
Log In to Comment