Fixed errrornous urls from merged private branch
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
@@ -47,9 +47,9 @@ public class XmlRpcResponse implements RpcResponse {
|
||||
throws SAXException, ParserConfigurationException, IOException {
|
||||
SAXParserFactory factory = SAXParserFactory.newInstance();
|
||||
SAXParser saxParser = factory.newSAXParser();
|
||||
factory.setFeature("https://xml.org/sax/features/external-general-entities", false);
|
||||
saxParser.getXMLReader().setFeature("https://xml.org/sax/features/external-general-entities", false);
|
||||
factory.setFeature("https://apache.org/xml/features/disallow-doctype-decl", true);
|
||||
factory.setFeature("http://xml.org/sax/features/external-general-entities", false);
|
||||
saxParser.getXMLReader().setFeature("http://xml.org/sax/features/external-general-entities", false);
|
||||
factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
|
||||
InputSource inputSource = new InputSource(is);
|
||||
inputSource.setEncoding(encoding);
|
||||
saxParser.parse(inputSource, new XmlRpcHandler());
|
||||
|
||||
Reference in New Issue
Block a user