summaryrefslogtreecommitdiffstats
path: root/src/test/java/com/gitblit/tests/FileTicketServiceTest.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-09-06 11:25:42 -0400
committerJames Moger <james.moger@gitblit.com>2014-09-07 11:42:40 -0400
commitfc3a39d464b1303f0b7d01d0160f81cbbb80a98b (patch)
tree9a45d2f99aa1393198e8610221eb51e982e0d5af /src/test/java/com/gitblit/tests/FileTicketServiceTest.java
parent90eb5a08ddd6a3a246e8b73da9524c304838928a (diff)
downloadgitblit-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.java6
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();