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">
|
<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};
|
||||||
|
|
Loading…
Reference in a new issue