diff options
author | James Moger <james.moger@gitblit.com> | 2014-06-12 19:19:26 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-07-03 16:57:47 -0400 |
commit | 52daaea33dab5d10ec7bd7164a4ce6560c56c8d4 (patch) | |
tree | 9754286e6ba35eaccdfe6d19492304ba5b7346c2 /src/main/java/com/gitblit/guice | |
parent | cdb2fe64280a517cf1d13013614bb8ab73cd0ac0 (diff) | |
download | gitblit-52daaea33dab5d10ec7bd7164a4ce6560c56c8d4.tar.gz gitblit-52daaea33dab5d10ec7bd7164a4ce6560c56c8d4.zip |
Restore all security filters
Diffstat (limited to 'src/main/java/com/gitblit/guice')
-rw-r--r-- | src/main/java/com/gitblit/guice/WebModule.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/main/java/com/gitblit/guice/WebModule.java b/src/main/java/com/gitblit/guice/WebModule.java index bfea987f..5b569182 100644 --- a/src/main/java/com/gitblit/guice/WebModule.java +++ b/src/main/java/com/gitblit/guice/WebModule.java @@ -20,16 +20,21 @@ import java.util.Map; import com.gitblit.Constants; import com.gitblit.servlet.BranchGraphServlet; +import com.gitblit.servlet.DownloadZipFilter; import com.gitblit.servlet.DownloadZipServlet; import com.gitblit.servlet.EnforceAuthenticationFilter; import com.gitblit.servlet.FederationServlet; +import com.gitblit.servlet.GitFilter; import com.gitblit.servlet.GitServlet; import com.gitblit.servlet.LogoServlet; +import com.gitblit.servlet.PagesFilter; import com.gitblit.servlet.PagesServlet; import com.gitblit.servlet.ProxyFilter; import com.gitblit.servlet.PtServlet; +import com.gitblit.servlet.RawFilter; import com.gitblit.servlet.RawServlet; import com.gitblit.servlet.RobotsTxtServlet; +import com.gitblit.servlet.RpcFilter; import com.gitblit.servlet.RpcServlet; import com.gitblit.servlet.SparkleShareInviteServlet; import com.gitblit.servlet.SyndicationFilter; @@ -70,11 +75,11 @@ public class WebModule extends ServletModule { filter(ALL).through(EnforceAuthenticationFilter.class); // security filters -// filter(fuzzy(Constants.R_PATH), fuzzy(Constants.GIT_PATH)).through(GitFilter.class); -// filter(fuzzy(Constants.RAW_PATH)).through(RawFilter.class); -// filter(fuzzy(Constants.PAGES)).through(PagesFilter.class); -// filter(fuzzy(Constants.RPC_PATH)).through(RpcFilter.class); -// filter(fuzzy(Constants.ZIP_PATH)).through(DownloadZipFilter.class); + filter(fuzzy(Constants.R_PATH), fuzzy(Constants.GIT_PATH)).through(GitFilter.class); + filter(fuzzy(Constants.RAW_PATH)).through(RawFilter.class); + filter(fuzzy(Constants.PAGES)).through(PagesFilter.class); + filter(fuzzy(Constants.RPC_PATH)).through(RpcFilter.class); + filter(fuzzy(Constants.ZIP_PATH)).through(DownloadZipFilter.class); filter(fuzzy(Constants.SYNDICATION_PATH)).through(SyndicationFilter.class); // Wicket |