diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-05 22:28:07 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-05 22:28:07 +0100 |
commit | f7994434cbc72c9df0bf935f2f57e906909de208 (patch) | |
tree | af025380d86750e1aa904aefbe2787e015403336 /lib | |
parent | 5ada5a33b1214eb1b00d2f5508664d80ad41ebe6 (diff) |
Handle invalid HAFAS XML containing "Wagen \d+ & \d+"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 1 |
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&R}; + $body =~ s{Wagen \d+ \K&(?= )}{&}; # <Attribute [...] text="[...] "[...]"" /> is invalid XML. # Work around it. |