diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-08-14 20:28:31 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-08-14 20:28:31 +0200 |
commit | 234df0b3f6ff8cabfefe533915e4e06aa03b2bfb (patch) | |
tree | 232dd6f81ba9d62f1b83f586248501dada2e5c87 | |
parent | a6780eed71545aef0698c765949b105e40fa3451 (diff) | |
download | bugzilla-234df0b3f6ff8cabfefe533915e4e06aa03b2bfb.tar.gz bugzilla-234df0b3f6ff8cabfefe533915e4e06aa03b2bfb.tar.xz |
Bug 834290 - Add support for iPads and iPhones in useragent strings
-rw-r--r-- | Bugzilla/UserAgent.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/UserAgent.pm b/Bugzilla/UserAgent.pm index 07b05b99c..afddff958 100644 --- a/Bugzilla/UserAgent.pm +++ b/Bugzilla/UserAgent.pm @@ -67,6 +67,7 @@ use constant PLATFORMS_MAP => ( # HP qr/\(.*9000.*\)/ => ["PA-RISC", "HP"], # ARM + qr/\(.*(?:iPad|iPhone).*\)/ => ["ARM"], qr/\(.*ARM.*\)/ => ["ARM", "PocketPC"], # PocketPC intentionally before PowerPC qr/\(.*Windows CE.*PPC.*\)/ => ["ARM", "PocketPC"], @@ -137,6 +138,12 @@ use constant OS_MAP => ( qr/\(.*Win(?:dows[ -]|)NT.*\)/ => ["Windows NT"], qr/\(.*Windows.*NT.*\)/ => ["Windows NT"], # OS X + qr/\(.*(?:iPad|iPhone).*OS 7.*\)/ => ["iOS 7"], + qr/\(.*(?:iPad|iPhone).*OS 6.*\)/ => ["iOS 6"], + qr/\(.*(?:iPad|iPhone).*OS 5.*\)/ => ["iOS 5"], + qr/\(.*(?:iPad|iPhone).*OS 4.*\)/ => ["iOS 4"], + qr/\(.*(?:iPad|iPhone).*OS 3.*\)/ => ["iOS 3"], + qr/\(.*(?:iPad|iPhone).*\)/ => ["iOS"], qr/\(.*Mac OS X (?:|Mach-O |\()10.6.*\)/ => ["Mac OS X 10.6"], qr/\(.*Mac OS X (?:|Mach-O |\()10.5.*\)/ => ["Mac OS X 10.5"], qr/\(.*Mac OS X (?:|Mach-O |\()10.4.*\)/ => ["Mac OS X 10.4"], |