Commit 0c94c477 authored by Luc Didry's avatar Luc Didry

Trim URL before any work on it

parent b3918d29
......@@ -35,7 +35,9 @@ sub add {
}
);
} else {
my $url = Mojo::URL->new($c->param('lsturl'));
my $lsturl = $c->param('lsturl');
$lsturl =~ s/^\s+|\s+$//g;
my $url = Mojo::URL->new($lsturl);
my $custom_url = $c->param('lsturl-custom');
my $format = $c->param('format');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment