diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-28 16:25:53 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-28 16:25:53 +0200 |
commit | 8e2d38a7da09b27401c8dd3cffb12d5003c93fae (patch) | |
tree | a46469aaebc4316e587fd58d168e0fa685f85f72 /templates/_checked_in.html.ep | |
parent | 64489725b36f3b98caa566248398b70f26c2b5aa (diff) |
correctly escape tripIDs in bahn.expert links2.8.7
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r-- | templates/_checked_in.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 2d71d7e..5ee233e 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -338,7 +338,7 @@ <div class="card-action"> % my $url = 'https://bahn.expert/details/'; % if ($journey->{train_id} =~ m{[|]}) { - % $url = $url . '/' . $journey->{sched_departure}->epoch . '000?jid=' . $journey->{train_id}; + % $url = $url . '/' . $journey->{sched_departure}->epoch . '000?jid=' . $journey->{train_id} =~ s{#}{%23}gr; % } % else { % $url = $url . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . $journey->{sched_departure}->epoch . '000?station=' . $journey->{dep_eva}; |