From bf936631aa3330dce53a71a0f19fff0df8cef715 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 28 Sep 2018 18:09:03 +0200 Subject: Handle invalid XML returned by VBB backend --- lib/Travel/Status/DE/HAFAS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travel/Status/DE') diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index bce35d3..62a123b 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -154,7 +154,7 @@ sub new { . ''; } - if ( defined $service and $service eq 'NVV' ) { + if ( defined $service and $service =~ m{ ^ VBB | NVV $ }x ) { # Returns invalid XML with tags inside HIMMessage's lead attribute. # Fix this. -- cgit v1.2.3