diff options
author | Yorhel <git@yorhel.nl> | 2010-11-27 19:13:45 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-11-27 19:13:45 +0100 |
commit | f7b542e24b3b222667f848a243d25dfc316c009b (patch) | |
tree | 47a149f1a9ccf029c536d6f8986ae95dfec7099c /util | |
parent | 77b455c15b7155312cb3aaa344039c4536f992e0 (diff) |
Extended IE6 warning message to show up for IE7 as well
Because the site never looked good in IE7, and the new filter system
doesn't work *at all*. (Doesn't work correctly on IE8 either, but I'll
try to fix that)
Diffstat (limited to 'util')
-rwxr-xr-x | util/vndb.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index b8988fd5..183cea4d 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -70,11 +70,11 @@ sub reqinit { $self->authInit; # check for IE6 - if($self->reqHeader('User-Agent') && $self->reqHeader('User-Agent') =~ /MSIE 6/ - && !$self->reqCookie('ie-sucks') && $self->reqPath ne 'we-dont-like-ie6') { + if($self->reqHeader('User-Agent') && $self->reqHeader('User-Agent') =~ /MSIE [67]/ + && !$self->reqCookie('ie-sucks') && $self->reqPath ne 'we-dont-like-ie') { # act as if we're opening /we-dont-like-ie6 (ugly hack, until YAWF supports preventing URL handlers from firing) $ENV{HTTP_REFERER} = $ENV{REQUEST_URI}; - $ENV{REQUEST_URI} = '/we-dont-like-ie6'; + $ENV{REQUEST_URI} = '/we-dont-like-ie'; } # load some stats (used for about all pageviews, anyway) |