summaryrefslogtreecommitdiff
path: root/util/vndb.pl
diff options
context:
space:
mode:
Diffstat (limited to 'util/vndb.pl')
-rwxr-xr-xutil/vndb.pl3
1 files changed, 3 insertions, 0 deletions
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};
};