From 4004675b4dfad4c22ce729ffa304798bdc8c19a8 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Sat, 5 Jan 2013 11:37:43 +0100 Subject: [PATCH] move templates to a secured directory --- .../java/sonia/scm/plugin/rest/FreemarkerTemplateProvider.java | 2 +- .../src/main/webapp/{ => WEB-INF/ftl}/detail.html | 0 scm-plugin-backend/src/main/webapp/{ => WEB-INF/ftl}/index.html | 0 .../src/main/webapp/{ => WEB-INF/ftl}/template/footer.html | 0 .../src/main/webapp/{ => WEB-INF/ftl}/template/header.html | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename scm-plugin-backend/src/main/webapp/{ => WEB-INF/ftl}/detail.html (100%) rename scm-plugin-backend/src/main/webapp/{ => WEB-INF/ftl}/index.html (100%) rename scm-plugin-backend/src/main/webapp/{ => WEB-INF/ftl}/template/footer.html (100%) rename scm-plugin-backend/src/main/webapp/{ => WEB-INF/ftl}/template/header.html (100%) diff --git a/scm-plugin-backend/src/main/java/sonia/scm/plugin/rest/FreemarkerTemplateProvider.java b/scm-plugin-backend/src/main/java/sonia/scm/plugin/rest/FreemarkerTemplateProvider.java index c5d1eb0a15..9c8e74b908 100644 --- a/scm-plugin-backend/src/main/java/sonia/scm/plugin/rest/FreemarkerTemplateProvider.java +++ b/scm-plugin-backend/src/main/java/sonia/scm/plugin/rest/FreemarkerTemplateProvider.java @@ -66,7 +66,7 @@ public class FreemarkerTemplateProvider implements ViewProcessor { /** Field description */ - public static final String DIRECTORY_TEMPLATES = "/"; + public static final String DIRECTORY_TEMPLATES = "/WEB-INF/ftl"; /** Field description */ private static final String EXTENSION = ".html"; diff --git a/scm-plugin-backend/src/main/webapp/detail.html b/scm-plugin-backend/src/main/webapp/WEB-INF/ftl/detail.html similarity index 100% rename from scm-plugin-backend/src/main/webapp/detail.html rename to scm-plugin-backend/src/main/webapp/WEB-INF/ftl/detail.html diff --git a/scm-plugin-backend/src/main/webapp/index.html b/scm-plugin-backend/src/main/webapp/WEB-INF/ftl/index.html similarity index 100% rename from scm-plugin-backend/src/main/webapp/index.html rename to scm-plugin-backend/src/main/webapp/WEB-INF/ftl/index.html diff --git a/scm-plugin-backend/src/main/webapp/template/footer.html b/scm-plugin-backend/src/main/webapp/WEB-INF/ftl/template/footer.html similarity index 100% rename from scm-plugin-backend/src/main/webapp/template/footer.html rename to scm-plugin-backend/src/main/webapp/WEB-INF/ftl/template/footer.html diff --git a/scm-plugin-backend/src/main/webapp/template/header.html b/scm-plugin-backend/src/main/webapp/WEB-INF/ftl/template/header.html similarity index 100% rename from scm-plugin-backend/src/main/webapp/template/header.html rename to scm-plugin-backend/src/main/webapp/WEB-INF/ftl/template/header.html