X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/632efb25c07c1b014a4e8cfbbea759f517c2aaf6..e83b51b4f6bd53efea0c772e6ecdf1c5605ca611:/cgit.c diff --git a/cgit.c b/cgit.c index 29b658e..725fd65 100644 --- a/cgit.c +++ b/cgit.c @@ -904,6 +904,8 @@ int main(int argc, const char **argv) const char *path; int err, ttl; + cgit_init_filters(); + prepare_context(&ctx); cgit_repolist.length = 0; cgit_repolist.count = 0; @@ -951,6 +953,7 @@ int main(int argc, const char **argv) ctx.cfg.cache_size = 0; err = cache_process(ctx.cfg.cache_size, ctx.cfg.cache_root, ctx.qry.raw, ttl, process_request, &ctx); + cgit_cleanup_filters(); if (err) cgit_print_error("Error processing page: %s (%d)", strerror(err), err);