summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-10-06 10:01:31 +0200
committerGravatar default2024-10-06 10:01:31 +0200
commite49c837cd790b0c6e4cbccafb148d2687a132258 (patch)
tree707b2b815c384713e3a7b7416b7e305d22aafe29
parentNew HTML variable error (still unused). (diff)
downloadsnac2-e49c837cd790b0c6e4cbccafb148d2687a132258.tar.gz
snac2-e49c837cd790b0c6e4cbccafb148d2687a132258.tar.xz
snac2-e49c837cd790b0c6e4cbccafb148d2687a132258.zip
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,
2783 2783
2784 /* get a possible error message */ 2784 /* get a possible error message */
2785 const char *error = xs_dict_get(q_vars, "error"); 2785 const char *error = xs_dict_get(q_vars, "error");
2786 if (error != NULL)
2787 cache = 0;
2786 2788
2787 /* a show of 0 has no sense */ 2789 /* a show of 0 has no sense */
2788 if (show == 0) 2790 if (show == 0)