summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-01-05 22:28:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-01-05 22:28:07 +0100
commitf7994434cbc72c9df0bf935f2f57e906909de208 (patch)
treeaf025380d86750e1aa904aefbe2787e015403336 /lib/DBInfoscreen
parent5ada5a33b1214eb1b00d2f5508664d80ad41ebe6 (diff)
Handle invalid HAFAS XML containing "Wagen \d+ & \d+"
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm
index e270a3e..19dc459 100644
--- a/lib/DBInfoscreen/Helper/HAFAS.pm
+++ b/lib/DBInfoscreen/Helper/HAFAS.pm
@@ -113,6 +113,7 @@ sub get_xml_p {
# More fixes for invalid XML
$body =~ s{P&R}{P&amp;R};
+ $body =~ s{Wagen \d+ \K&(?= )}{&amp;};
# <Attribute [...] text="[...] "[...]"" /> is invalid XML.
# Work around it.