aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-10-06 10:01:31 +0200
committerdefault <nobody@localhost>2024-10-06 10:01:31 +0200
commite49c837cd790b0c6e4cbccafb148d2687a132258 (patch)
tree707b2b815c384713e3a7b7416b7e305d22aafe29
parent7774a68f3f8211e9aaa98c837c868f6435eb4acf (diff)
Don't cache a page if an error is set.
-rw-r--r--html.c2
1 files changed, 2 insertions, 0 deletions
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)