summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-09-28 18:09:03 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-09-28 18:09:03 +0200
commitbf936631aa3330dce53a71a0f19fff0df8cef715 (patch)
tree3586610fbdb7afe98bab1f4f32f9975187836c21 /lib
parent9ef6f970fb99b07d2a2557c45a2a6367da0a6a12 (diff)
Handle invalid XML returned by VBB backend
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm2
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.