diff options
author | Yorhel <git@yorhel.nl> | 2011-01-27 11:15:09 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-01-27 11:15:09 +0100 |
commit | 2b1d425af0d2b27e383a0a4a18ec5d7c9b9b25ba (patch) | |
tree | 6a3db8ed20a4b9945ffa3671c18958a70a0e3e1a /util | |
parent | 64f3c44acebad3b64a7ea2a5462247c1a10f76ab (diff) |
TUWF: Cleanup IE check code using pre_request_handler return value
No more ugly hacks in my code thanks to TUWF!
(a browser check in itself is already ugly enough for my tastes...)
Diffstat (limited to 'util')
-rwxr-xr-x | util/vndb.pl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index 0bdb49d1..b845cb26 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -97,13 +97,7 @@ sub reqinit { $self->{l10n} = $handle; # check for IE - 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) - # TODO: TUWF has support for this, use it - $ENV{HTTP_REFERER} = $ENV{REQUEST_URI}; - $ENV{REQUEST_URI} = '/we-dont-like-ie'; - } + return 0 if !$self->ieCheck; # load some stats (used for about all pageviews, anyway) $self->{stats} = $self->dbStats; |