correctly escape tripIDs in bahn.expert links

This commit is contained in:
Birte Kristina Friesel 2024-07-28 16:25:53 +02:00
parent 64489725b3
commit 8e2d38a7da
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -338,7 +338,7 @@
<div class="card-action"> <div class="card-action">
% my $url = 'https://bahn.expert/details/'; % my $url = 'https://bahn.expert/details/';
% if ($journey->{train_id} =~ m{[|]}) { % 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 { % else {
% $url = $url . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . $journey->{sched_departure}->epoch . '000?station=' . $journey->{dep_eva}; % $url = $url . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . $journey->{sched_departure}->epoch . '000?station=' . $journey->{dep_eva};