diff options
| author | 2024-10-06 10:01:31 +0200 | |
|---|---|---|
| committer | 2024-10-06 10:01:31 +0200 | |
| commit | e49c837cd790b0c6e4cbccafb148d2687a132258 (patch) | |
| tree | 707b2b815c384713e3a7b7416b7e305d22aafe29 | |
| parent | New HTML variable error (still unused). (diff) | |
| download | snac2-e49c837cd790b0c6e4cbccafb148d2687a132258.tar.gz snac2-e49c837cd790b0c6e4cbccafb148d2687a132258.tar.xz snac2-e49c837cd790b0c6e4cbccafb148d2687a132258.zip | |
Don't cache a page if an error is set.
| -rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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) |