diff options
author | lpsolit%gmail.com <> | 2009-04-06 00:00:30 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-04-06 00:00:30 +0200 |
commit | 2ee6d9a1b8ebde208a1ff11e97c909925fe87303 (patch) | |
tree | 7290af814b923dfbf9afefc01df3284b4d99e3ee /enter_bug.cgi | |
parent | 99fc9cb4ee490174a6be6cc56e8815c41ba57d48 (diff) | |
download | bugzilla-2ee6d9a1b8ebde208a1ff11e97c909925fe87303.tar.gz bugzilla-2ee6d9a1b8ebde208a1ff11e97c909925fe87303.tar.xz |
Bug 471522: OS sniffing doesn't properly detect OS X 10.5 (and others) - Patch by timeless <timeless@bemail.org>, updated by Matt Selsky <selsky@columbia.edu> r=timeless a=LpSolit
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index f028187fd..408336121 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -303,8 +303,18 @@ sub pickos { /\(.*Windows.*NT.*\)/ && do {push @os, "Windows NT";}; }; /\(.*Mac OS X.*\)/ && do { - /\(.*Intel.*Mac OS X 10.5.*\)/ && do {push @os, "Mac OS X 10.5";}; + /\(.*Mac OS X (?:|Mach-O |\()10.6.*\)/ && do {push @os, "Mac OS X 10.6";}; + /\(.*Mac OS X (?:|Mach-O |\()10.5.*\)/ && do {push @os, "Mac OS X 10.5";}; + /\(.*Mac OS X (?:|Mach-O |\()10.4.*\)/ && do {push @os, "Mac OS X 10.4";}; + /\(.*Mac OS X (?:|Mach-O |\()10.3.*\)/ && do {push @os, "Mac OS X 10.3";}; + /\(.*Mac OS X (?:|Mach-O |\()10.2.*\)/ && do {push @os, "Mac OS X 10.2";}; + /\(.*Mac OS X (?:|Mach-O |\()10.1.*\)/ && do {push @os, "Mac OS X 10.1";}; + # Unfortunately, OS X 10.4 was the first to support Intel. This is + # fallback support because some browsers refused to include the OS + # Version. /\(.*Intel.*Mac OS X.*\)/ && do {push @os, "Mac OS X 10.4";}; + # OS X 10.3 is the most likely default version of PowerPC Macs + # OS X 10.0 is more for configurations which didn't setup 10.x versions /\(.*Mac OS X.*\)/ && do {push @os, ("Mac OS X 10.3", "Mac OS X 10.0", "Mac OS X");}; }; /\(.*32bit.*\)/ && do {push @os, "Windows 95";}; |