mirror of
https://github.com/derf/travelynx
synced 2024-11-26 06:20:19 +00:00
correctly escape tripIDs in bahn.expert links
This commit is contained in:
parent
64489725b3
commit
8e2d38a7da
1 changed files with 1 additions and 1 deletions
|
@ -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};
|
||||
|
|
Loading…
Reference in a new issue