Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 4b2538884b3c80d3fd2306d2a4cc85eb > files > 4

perl-Mojolicious-0.999925-4.fc13.src.rpm

diff -ur Mojolicious-0.999925/lib/Mojo/Path.pm Mojolicious-0.999925.path/lib/Mojo/Path.pm
--- Mojolicious-0.999925/lib/Mojo/Path.pm	2010-04-24 02:00:52.000000000 +0300
+++ Mojolicious-0.999925.path/lib/Mojo/Path.pm	2011-04-17 12:29:48.846565679 +0300
@@ -85,6 +85,9 @@
     $self->leading_slash(1)  if $path =~ /^\//;
     $self->trailing_slash(1) if $path =~ /\/$/;
 
+    # Unescape
+    $path = b($path)->url_unescape($Mojo::URL::PCHAR)->to_string;
+
     # Parse
     my @parts;
     for my $part (split '/', $path) {
Only in Mojolicious-0.999925.path/lib/Mojo: Path.pm.orig
diff -ur Mojolicious-0.999925/t/mojo/url.t Mojolicious-0.999925.path/t/mojo/url.t
--- Mojolicious-0.999925/t/mojo/url.t	2010-05-23 22:32:10.000000000 +0300
+++ Mojolicious-0.999925.path/t/mojo/url.t	2011-04-17 12:29:48.847565679 +0300
@@ -121,12 +121,12 @@
 is($url->userinfo, undef,                                     'no userinfo');
 is($url->host,     'acme.s3.amazonaws.com',                   'right host');
 is($url->port,     undef,                                     'no port');
-is($url->path,     '/mojo%2Fg++-4.2_4.2.3-2ubuntu7_i386.deb', 'right path');
+is($url->path,     '/mojo/g++-4.2_4.2.3-2ubuntu7_i386.deb', 'right path');
 ok(!$url->query, 'no query');
 is_deeply($url->query->to_hash, {}, 'right structure');
 is($url->fragment, undef, 'no fragment');
 is("$url",
-    'http://acme.s3.amazonaws.com/mojo%2Fg++-4.2_4.2.3-2ubuntu7_i386.deb',
+    'http://acme.s3.amazonaws.com/mojo/g++-4.2_4.2.3-2ubuntu7_i386.deb',
     'right format');
 
 # Clone (advanced)
Only in Mojolicious-0.999925.path/t/mojo: url.t.orig
diff -ur Mojolicious-0.999925/t/mojox/routes/routes.t Mojolicious-0.999925.path/t/mojox/routes/routes.t
--- Mojolicious-0.999925/t/mojox/routes/routes.t	2010-05-25 13:29:01.000000000 +0300
+++ Mojolicious-0.999925.path/t/mojox/routes/routes.t	2011-04-17 12:30:26.285565676 +0300
@@ -356,7 +356,7 @@
 $m = MojoX::Routes::Match->new($tx)->match($r);
 is($m->stack->[0]->{controller}, 'wild');
 is($m->stack->[0]->{action},     'card');
-is($m->stack->[0]->{wildcard},   'http://www.google.com');
+is($m->stack->[0]->{wildcard},   'http:/www.google.com');
 is($m->url_for,                  '/wildcards/1/http:/www.google.com');
 is(@{$m->stack},                 1);
 
Only in Mojolicious-0.999925.path/t/mojox/routes: routes.t.orig
Only in Mojolicious-0.999925.path/t/mojox/routes: routes.t.rej