From 386294c409117ab6557371bfa0d43257fd9d7f3a Mon Sep 17 00:00:00 2001 From: tobexyz <40026159+tobexyz@users.noreply.github.com> Date: Tue, 17 Sep 2024 19:57:56 +0200 Subject: [PATCH] fixed parsing problem with & in DIDL objects --- .../fourthline/cling/support/contentdirectory/DIDLParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaacc/src/main/java/org/fourthline/cling/support/contentdirectory/DIDLParser.java b/yaacc/src/main/java/org/fourthline/cling/support/contentdirectory/DIDLParser.java index eae14eba..7195350b 100644 --- a/yaacc/src/main/java/org/fourthline/cling/support/contentdirectory/DIDLParser.java +++ b/yaacc/src/main/java/org/fourthline/cling/support/contentdirectory/DIDLParser.java @@ -117,7 +117,7 @@ public DIDLContent parse(String xml) throws Exception { createRootHandler(content, this); Log.d(getClass().getName(), "Parsing DIDL XML content"); - parse(new InputSource(new StringReader(xml))); + parse(new InputSource(new StringReader(xml.replaceAll("&", "&")))); return content; }