diff --git a/templates/default/documentation.html.ep b/templates/default/documentation.html.ep index 6a0d913..eb47a3f 100644 --- a/templates/default/documentation.html.ep +++ b/templates/default/documentation.html.ep @@ -103,7 +103,6 @@
<%=l 'YOU_ARE_INVITED_TO_A_MEETING' %> diff --git a/templates/default/join.html.ep b/templates/default/join.html.ep index fc7d19e..edcb057 100644 --- a/templates/default/join.html.ep +++ b/templates/default/join.html.ep @@ -360,7 +360,7 @@ etherpad = { enabled: <%= $etherpad %>, <% - my $ethuri = URI->new($config->{'etherpad.uri'}); + my $ethuri = Mojo::URL->new($config->{'etherpad.uri'}); %> host: "<%= $ethuri->scheme . '://' . $ethuri->authority %>", path: "<%= $ethuri->path . '/p/' %>", diff --git a/templates/default/notification.mail.ep b/templates/default/notification.mail.ep index 9e92f62..4bbd39c 100644 --- a/templates/default/notification.mail.ep +++ b/templates/default/notification.mail.ep @@ -1,7 +1,6 @@ <% - my $url = $self->url_for('/')->to_abs; + my $url = Mojo::URL->new($self->url_for('/')->to_abs)->scheme('https'); $url .= ($url =~ m/\/$/) ? '' : '/'; - $url =~ s/^http:/https:/; %>
<%=l 'SOMEONE_JOINED_A_ROOM' %> diff --git a/vroom.pl b/vroom.pl index 301eb45..fd1da10 100755 --- a/vroom.pl +++ b/vroom.pl @@ -20,7 +20,6 @@ use Etherpad::API; use Session::Token; use Config::Simple; use Email::Valid; -use URI; use Protocol::SocketIO::Handshake; use Protocol::SocketIO::Message; use Data::Dumper;