From cc13881390f5b951ab9c36d709990b0397d16a06 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 22 May 2015 17:17:09 +0200 Subject: [PATCH] get_url doesn't exist anymore, switch to url_for --- vroom.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vroom.pl b/vroom.pl index 814038b..0679d9e 100755 --- a/vroom.pl +++ b/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}){