From 858ff390d3a86f53f8d2b375d1d335e638620220 Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Mon, 9 Jul 2018 03:24:12 +0200 Subject: [PATCH] Fix: Remove broken XSLT loader cache invalidation The XSLT loader caches the admin path from the config file and invalidates it by comparing the stored path with the one in the config. But to the stored path a / is appended, which means the cache would always invalidate as it never matches. --- src/xslt.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/xslt.c b/src/xslt.c index f24b2fc0..c021e790 100644 --- a/src/xslt.c +++ b/src/xslt.c @@ -264,16 +264,6 @@ static xmlDocPtr custom_loader(const xmlChar *URI, /* In case a top stylesheet is loaded */ case XSLT_LOAD_START: config = config_get_config(); - /* Admin path is cached, so that we don't need to get it from - * the config every time we load a xsl include. - * Whenever a new top stylesheet is loaded, we check here - * if the path in the config has changed and adjust it, if needed. - */ - if (admin_path != NULL && - strcmp(config->adminroot_dir, (char *)admin_path) != 0) { - xmlFree(admin_path); - admin_path = NULL; - } /* Do we need to load the admin path? */ if (!admin_path) { size_t len = strlen(config->adminroot_dir);