Skip to content

Commit

Permalink
Formatter / Cache & landing pages / Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Jan 8, 2020
1 parent 44b1650 commit 84f018b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ private String getXmlFromUrl(ServiceContext context, String lang, String url, We
adjustedUrl = context.getBean(SettingManager.class).getSiteURL(lang) + url;
} else {
final URI uri = new URI(url);
Set allowedRemoteHosts = context.getBean("formatterRemoteFormatAllowedHosts", Set.class);
Set allowedRemoteHosts = ApplicationContextHolder.get().getBean("formatterRemoteFormatAllowedHosts", Set.class);
Assert.isTrue(allowedRemoteHosts.contains(uri.getHost()), "xml.format is not allowed to make requests to " + uri.getHost());
}

Expand Down

0 comments on commit 84f018b

Please sign in to comment.