Skip to content

Commit

Permalink
correctly escape tripIDs in bahn.expert links
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Jul 28, 2024
1 parent 6448972 commit 8e2d38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/_checked_in.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 8e2d38a

Please sign in to comment.