diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-09-28 18:09:03 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-09-28 18:09:03 +0200 |
commit | bf936631aa3330dce53a71a0f19fff0df8cef715 (patch) | |
tree | 3586610fbdb7afe98bab1f4f32f9975187836c21 /lib | |
parent | 9ef6f970fb99b07d2a2557c45a2a6367da0a6a12 (diff) |
Handle invalid XML returned by VBB backend
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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 { . '</wrap>'; } - 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. |