diff options
author | jocuri%softhome.net <> | 2004-08-28 17:58:13 +0200 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-08-28 17:58:13 +0200 |
commit | 26640251cc8ace3a5fea3b6af121533150d8eed8 (patch) | |
tree | 735a76c0d51ab96c22360f64d0e4f0fde3b21ac2 /enter_bug.cgi | |
parent | 1dff25eca7b5c489e0807cb8fd595c773bbfd4f5 (diff) | |
download | bugzilla-26640251cc8ace3a5fea3b6af121533150d8eed8.tar.gz bugzilla-26640251cc8ace3a5fea3b6af121533150d8eed8.tar.xz |
Patch for bug 248613: Custom global default platform/OS in non-usebrowserinfo scenarios; patch by Marc Schumann <marcschum@web.de>; r=kiko, a=myk.
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index a0291fae5..a9f1f4958 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -155,7 +155,9 @@ sub formvalue { sub pickplatform { return formvalue("rep_platform") if formvalue("rep_platform"); - if ( Param('usebrowserinfo') ) { + if (Param('defaultplatform')) { + return Param('defaultplatform'); + } else { for ($ENV{'HTTP_USER_AGENT'}) { #PowerPC /\(.*PowerPC.*\)/i && do {return "Macintosh";}; @@ -196,16 +198,17 @@ sub pickplatform { /Amiga/ && do {return "Macintosh";}; /WinMosaic/ && do {return "PC";}; } + return "Other"; } - # default - return "Other"; } sub pickos { if (formvalue('op_sys') ne "") { return formvalue('op_sys'); } - if ( Param('usebrowserinfo') ) { + if (Param('defaultopsys')) { + return Param('defaultopsys'); + } else { for ($ENV{'HTTP_USER_AGENT'}) { /\(.*IRIX.*\)/ && do {return "IRIX";}; /\(.*OSF.*\)/ && do {return "OSF/1";}; @@ -259,9 +262,8 @@ sub pickos { /\(.*PPC.*\)/ && do {return "Mac System 9.x";}; /\(.*68K.*\)/ && do {return "Mac System 8.0";}; } + return "other"; } - # default - return "other"; } ############################################################################## # End of subroutines |