mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Don't cache a page if an error is set.
This commit is contained in:
parent
7774a68f3f
commit
e49c837cd7
1 changed files with 2 additions and 0 deletions
2
html.c
2
html.c
|
@ -2783,6 +2783,8 @@ int html_get_handler(const xs_dict *req, const char *q_path,
|
||||||
|
|
||||||
/* get a possible error message */
|
/* get a possible error message */
|
||||||
const char *error = xs_dict_get(q_vars, "error");
|
const char *error = xs_dict_get(q_vars, "error");
|
||||||
|
if (error != NULL)
|
||||||
|
cache = 0;
|
||||||
|
|
||||||
/* a show of 0 has no sense */
|
/* a show of 0 has no sense */
|
||||||
if (show == 0)
|
if (show == 0)
|
||||||
|
|
Loading…
Reference in a new issue