Gossamer Forum
Home : Gossamer Threads Inc. : Discussion :

Re: [wysardry] Browser problems with GT products

Quote Reply
Re: [wysardry] Browser problems with GT products In reply to
Hi,

Thanks for the feedback, that was a bug. There are 2 subroutines within Commands.pm that you need to fix:

- cmd_edit: Replace

my $browser;
$browser = 1 if ($ENV{HTTP_USER_AGENT} =~ m,MSIE 5, or $ENV{HTTP_USER_AGENT} =~ m,MSIE 6,);

WITH:

Code:
my ($browser, $version);
if ($ENV{HTTP_USER_AGENT} and $ENV{HTTP_USER_AGENT} =~ /MSIE (\d+(?:\.\d+)?)/) {
$version = $1;
}
$browser = $version && $version >= 5.5;


- cmd_show: Replace
my $ie = ($ENV{HTTP_USER_AGENT} =~ m,MSIE 5.5, or $ENV{HTTP_USER_AGENT} =~ m,MSIE 6,) ? 1 : 0;

WITH:
Code:
my ($ie, $version);
if ($ENV{HTTP_USER_AGENT} and $ENV{HTTP_USER_AGENT} =~ /MSIE (\d+(?:\.\d+)?)/) {
$version = $1;
}
$ie = $version && $version >= 5.5;


TheStone.

B.
Subject Author Views Date
Thread Browser problems with GT products wysardry 6879 Jan 23, 2003, 6:44 PM
Thread Re: [wysardry] Browser problems with GT products
Jagerman 6715 Jan 24, 2003, 9:35 AM
Post Re: [Jagerman] Browser problems with GT products
wysardry 6714 Jan 24, 2003, 2:11 PM
Thread Re: [Jagerman] Browser problems with GT products
wysardry 6632 Jan 25, 2003, 1:55 PM
Thread Re: [wysardry] Browser problems with GT products
Alex 6594 Jan 27, 2003, 10:02 AM
Thread Re: [Alex] Browser problems with GT products
wysardry 6553 Jan 27, 2003, 12:53 PM
Thread Re: [wysardry] Browser problems with GT products
604 6594 Jan 27, 2003, 1:47 PM
Post Re: [TheStone] Browser problems with GT products
ManuGermany 6549 Jan 27, 2003, 11:09 PM
Post Re: [TheStone] Browser problems with GT products
wysardry 6438 Jan 29, 2003, 2:29 PM