We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2c6da commit 1cc8069Copy full SHA for 1cc8069
rss-middletier/src/main/java/com/netflix/recipes/rss/manager/RSSManager.java
@@ -147,6 +147,8 @@ private RSS parseRSS(String url, String rss) {
147
148
RSS rssItems = null;
149
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
150
+ String FEATURE = "http://apache.org/xml/features/disallow-doctype-decl";
151
+ dbf.setFeature(FEATURE, true);
152
try {
153
DocumentBuilder db = dbf.newDocumentBuilder();
154
@@ -183,4 +185,4 @@ private RSS parseRSS(String url, String rss) {
183
185
public int getStatus() {
184
186
return store == null ? 500 : 200;
187
}
-}
188
+}
0 commit comments