Skip to content

Commit

Permalink
do not capture scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 8, 2013
1 parent 26730f0 commit 5a6f74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Controller.pm
Expand Up @@ -382,7 +382,7 @@ sub url_for {

# Absolute URL
return $target if Scalar::Util::blessed $target && $target->isa('Mojo::URL');
return Mojo::URL->new($target) if $target =~ m!^(?:([^:/?#]+:)|//)!;
return Mojo::URL->new($target) if $target =~ m!^(?:[^:/?#]+:|//)!;

# Base
my $url = Mojo::URL->new;
Expand Down

0 comments on commit 5a6f74f

Please sign in to comment.