diff options
author | James Moger <james.moger@gitblit.com> | 2014-09-06 11:25:42 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-09-07 11:42:40 -0400 |
commit | fc3a39d464b1303f0b7d01d0160f81cbbb80a98b (patch) | |
tree | 9a45d2f99aa1393198e8610221eb51e982e0d5af /src/test/java/com/gitblit/tests/FileTicketServiceTest.java | |
parent | 90eb5a08ddd6a3a246e8b73da9524c304838928a (diff) | |
download | gitblit-fc3a39d464b1303f0b7d01d0160f81cbbb80a98b.tar.gz gitblit-fc3a39d464b1303f0b7d01d0160f81cbbb80a98b.zip |
Create infrastructure for XSS sanitization
Diffstat (limited to 'src/test/java/com/gitblit/tests/FileTicketServiceTest.java')
-rw-r--r-- | src/test/java/com/gitblit/tests/FileTicketServiceTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/java/com/gitblit/tests/FileTicketServiceTest.java b/src/test/java/com/gitblit/tests/FileTicketServiceTest.java index 6ede042a..1fb2eed9 100644 --- a/src/test/java/com/gitblit/tests/FileTicketServiceTest.java +++ b/src/test/java/com/gitblit/tests/FileTicketServiceTest.java @@ -29,6 +29,8 @@ import com.gitblit.manager.UserManager; import com.gitblit.models.RepositoryModel; import com.gitblit.tickets.FileTicketService; import com.gitblit.tickets.ITicketService; +import com.gitblit.utils.XssFilter; +import com.gitblit.utils.XssFilter.AllowXssFilter; /** * Tests the file ticket service. @@ -49,8 +51,8 @@ public class FileTicketServiceTest extends TicketServiceTest { protected ITicketService getService(boolean deleteAll) throws Exception { IStoredSettings settings = getSettings(deleteAll); - - IRuntimeManager runtimeManager = new RuntimeManager(settings).start(); + XssFilter xssFilter = new AllowXssFilter(); + IRuntimeManager runtimeManager = new RuntimeManager(settings, xssFilter).start(); IPluginManager pluginManager = new PluginManager(runtimeManager).start(); INotificationManager notificationManager = new NotificationManager(settings).start(); IUserManager userManager = new UserManager(runtimeManager, pluginManager).start(); |