From 3f33341a2e848bbf31a083aaf07672136f73ec40 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 6 Feb 2021 18:06:09 +0100 Subject: HAFAS: Remove all illegal linebreaks from attributes, not just the first --- lib/Travelynx/Helper/HAFAS.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index 77bd52b..e04245b 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -203,8 +203,11 @@ sub get_xml_p { =~ s{]+)text="([^"]*)"([^"=]*)""}{. - $body - =~ s{]+)lead="([^"]*)
([^"=]*)"}{]+)lead="([^"]*)
([^"=]*)"}{load_xml( string => $body ) }; if ( my $err = $@ ) { -- cgit v1.2.3