From 8e2d38a7da09b27401c8dd3cffb12d5003c93fae Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 28 Jul 2024 16:25:53 +0200 Subject: correctly escape tripIDs in bahn.expert links --- templates/_checked_in.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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 @@
% 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}; -- cgit v1.2.3