From 5eb3eaa7484ade5bfd4492af95de0a0d3dcc2c03 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 21 Aug 2022 12:58:07 +0200 Subject: Clear unused cookie & localStorage --- util/vndb.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') diff --git a/util/vndb.pl b/util/vndb.pl index 3c0be0c2..f68ddc40 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -51,6 +51,9 @@ TUWF::hook before => sub { # Ought to be more reliable than checking the Referer header, but it's unfortunately a bit uglier. tuwf->resCookie(samesite => 1, httponly => 1, samesite => 'Strict') if !VNWeb::Validation::samesite; + # Remove an old cookie that is no longer used + tuwf->resCookie(prodrelexpand => undef) if tuwf->reqCookie('prodrelexpand'); + tuwf->req->{trace_start} = time if config->{trace_log}; }; -- cgit v1.2.3