summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Helper
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-03-30 18:24:50 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-03-30 18:24:50 +0200
commit9d4a189833409c5ffa7852bb30e6b1a64be04889 (patch)
treedf1bbc9ef4ee385a2a5fc4e7c7e804b82ff81c6e /lib/DBInfoscreen/Helper
parent1c80f35a18e4a023b269c4b506cdd073c5796793 (diff)
HAFAS: more generic fix for invalid XML4.9.3
Diffstat (limited to 'lib/DBInfoscreen/Helper')
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm
index 31615b1..48632c0 100644
--- a/lib/DBInfoscreen/Helper/HAFAS.pm
+++ b/lib/DBInfoscreen/Helper/HAFAS.pm
@@ -119,7 +119,7 @@ sub get_xml_p {
# More fixes for invalid XML
$body =~ s{P&R}{P&amp;R};
- $body =~ s{Wagen \d+ \K&(?= )}{&amp;};
+ $body =~ s{& }{&amp; }g;
# <Attribute [...] text="[...]"[...]"" /> is invalid XML.
# Work around it.