Skip to content
Snippets Groups Projects
Unverified Commit 8e2d38a7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

correctly escape tripIDs in bahn.expert links

parent 64489725
No related branches found
No related tags found
No related merge requests found
......@@ -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};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment