get_url doesn't exist anymore, switch to url_for

master
Daniel Berteaud 10 years ago
parent 89a5e5bbc4
commit cc13881390
  1. 4
      vroom.pl

@ -1356,7 +1356,7 @@ any [qw(GET POST)] => '/password/(:room)' => sub {
key => $self->session('key'),
role => 'participant'
);
return $self->redirect_to($self->get_url('/') . $room);
return $self->redirect_to($self->url_for('/') . $room);
}
# Else, it's a wrong password, display an error page
else{
@ -2108,7 +2108,7 @@ get '/:room' => sub {
(!$self->session($room) ||
$self->session($room)->{role} !~ m/^participant|owner$/) &&
!$self->check_invite_token($room,$token)){
return $self->redirect_to($self->get_url('/password') . $room);
return $self->redirect_to($self->url_for('/password/') . $room);
}
# Set this peer as a simple participant if he has no role yet (shouldn't happen)
if (!$self->session($room) || !$self->session($room)->{role}){

Loading…
Cancel
Save