Don't cache a page if an error is set.

This commit is contained in:
default 2024-10-06 10:01:31 +02:00
parent 7774a68f3f
commit e49c837cd7

2
html.c
View file

@ -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)