Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/src/org/labkey/filters/ContentSecurityPolicyFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ public void testSubstitutionMap()
{
synchronized (ALLOWED_SOURCES_LOCK)
{
// Ensure substitution map has been initialized, otherwise the finally block asserts will fail
regenerateSubstitutionMap();
// Make a deep copy of ALLOWED_SOURCES so we can restore it after testing
int sourceMapSize = ALLOWED_SOURCES.size();
int substitutionMapSize = ALLOWED_SOURCES_SUBSTITUTION_MAP.size();
Expand Down