Procházet zdrojové kódy

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

default před 1 rokem
rodič
revize
e49c837cd7
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      html.c

+ 2 - 0
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)