diff options
author | Yorhel <git@yorhel.nl> | 2008-12-17 13:41:16 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-12-17 13:41:16 +0100 |
commit | 432dd0e2de9e4abbd3eb59b36aae8e61341e266f (patch) | |
tree | af8f211150b805515c7bfb4e253e0296abcab4fd /util/vndb.pl | |
parent | 222977ada7e69b1c8ca5eb6520a4cfffbb29a808 (diff) |
Added warning for IE6 users
Diffstat (limited to 'util/vndb.pl')
-rwxr-xr-x | util/vndb.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index 636de2a7..5ef0bf40 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -39,6 +39,14 @@ YAWF::init( sub reqinit { my $self = shift; $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') { + # 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'; + } } |