diff options
author | Yorhel <git@yorhel.nl> | 2011-01-27 10:11:52 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-01-27 10:11:52 +0100 |
commit | 08d3dffe2dc6b955f2e10629079d5ae5c32f7183 (patch) | |
tree | 4a2c8f5a2fa52f73b94d4cab610f71ab3234a3c6 /util/vndb.pl | |
parent | 01c4028bfa067546af572de06789cc4121b1ffbc (diff) |
TUWF: Replaced resHeader('Set-Cookie', ..) with resCookie()
Way more convenient. This also fixes several bugs with the previous
commit, since the cookie_prefix wasn't used for *all* cookies. Since it
is now, the 'l10n' cookie now also respects the configured prefix, which
means some people will have to set their default language again.
Configuration changes: 'cookie_domain' option has been removed, the
'cookie_defaults' option of TUWF should now be used.
Diffstat (limited to 'util/vndb.pl')
-rwxr-xr-x | util/vndb.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index 790a17a3..0bdb49d1 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -93,8 +93,7 @@ sub reqinit { $rmcookie = 1 if $cookie && $cookie eq $browser; $handle = VNDB::L10N->get_handle($cookie) if $cookie && $browser ne $cookie; } - $self->resHeader('Set-Cookie', "l10n= ; expires=Sat, 01-Jan-2000 00:00:00 GMT; path=/; domain=$self->{cookie_domain}") - if $rmcookie; + $self->resCookie(l10n => undef) if $rmcookie; $self->{l10n} = $handle; # check for IE |