mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fixed errrornous urls from merged private branch
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
parent
5fe2f9c83a
commit
f5ee685556
@ -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());
|
||||
|
@ -79,9 +79,9 @@ public class UpnpXMLParser {
|
||||
try {
|
||||
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);
|
||||
saxParser.parse(new InputSource(new StringReader(xml)), handler);
|
||||
} catch (IOException e) {
|
||||
// This should never happen - we're not performing I/O!
|
||||
@ -138,9 +138,9 @@ public class UpnpXMLParser {
|
||||
try {
|
||||
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);
|
||||
saxParser.parse(new InputSource(new StringReader(xml)), handler);
|
||||
} catch (IOException e) {
|
||||
// This should never happen - we're not performing I/O!
|
||||
@ -185,9 +185,9 @@ public class UpnpXMLParser {
|
||||
try {
|
||||
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);
|
||||
saxParser.parse(new InputSource(new StringReader(xml)), handler);
|
||||
} catch (IOException e) {
|
||||
// This should never happen - we're not performing I/O!
|
||||
|
Loading…
Reference in New Issue
Block a user