summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/GitBlit.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/gitblit/GitBlit.java')
-rw-r--r--src/main/java/com/gitblit/GitBlit.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/GitBlit.java b/src/main/java/com/gitblit/GitBlit.java
index f191d6a6..97372e11 100644
--- a/src/main/java/com/gitblit/GitBlit.java
+++ b/src/main/java/com/gitblit/GitBlit.java
@@ -3554,8 +3554,6 @@ public class GitBlit implements ServletContextListener {
configureFanout();
configureGitDaemon();
configureCommitCache();
-
- ContainerUtils.CVE_2007_0450.test();
}
protected void configureMailExecutor() {
@@ -3817,6 +3815,10 @@ public class GitBlit implements ServletContextListener {
FileSettings settings = new FileSettings(localSettings.getAbsolutePath());
configureContext(settings, base, true);
}
+
+ // WAR or Express is likely to be running on a Tomcat.
+ // Test for the forward-slash/%2F issue and auto-adjust settings.
+ ContainerUtils.CVE_2007_0450.test(settings);
}
settingsModel = loadSettingModels();