summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 5598a4f..ef1374c 100644
--- a/html.c
+++ b/html.c
@@ -1843,7 +1843,11 @@ int html_get_handler(const xs_dict *req, const char *q_path,
1843 xs *l = xs_split(p_path, "/"); 1843 xs *l = xs_split(p_path, "/");
1844 char *id = xs_list_get(l, 1); 1844 char *id = xs_list_get(l, 1);
1845 1845
1846 if ((*body = history_get(&snac, id)) != NULL) { 1846 if (xs_endswith(id, "timeline.html_")) {
1847 // Don't let them in.
1848 *b_size = 0;
1849 status = 404;
1850 } else if ((*body = history_get(&snac, id)) != NULL) {
1847 *b_size = strlen(*body); 1851 *b_size = strlen(*body);
1848 status = 200; 1852 status = 200;
1849 } 1853 }