From e49c837cd790b0c6e4cbccafb148d2687a132258 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 6 Oct 2024 10:01:31 +0200 Subject: Don't cache a page if an error is set. --- html.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'html.c') diff --git a/html.c b/html.c index 914f3d2..810cd88 100644 --- a/html.c +++ b/html.c @@ -2783,6 +2783,8 @@ int html_get_handler(const xs_dict *req, const char *q_path, /* get a possible error message */ const char *error = xs_dict_get(q_vars, "error"); + if (error != NULL) + cache = 0; /* a show of 0 has no sense */ if (show == 0) -- cgit v1.2.3