* Catalyst now escapes slashes to %2f, which broke defaultUriForProduct.

This commit is contained in:
Eelco Dolstra 2011-08-19 16:23:01 +00:00
parent 9f78a942bc
commit c51af99ecf

View file

@ -154,7 +154,7 @@ sub defaultUriForProduct {
my $x = $product->productnr
. ($product->name ? "/" . $product->name : "")
. ($product->defaultpath ? "/" . $product->defaultpath : "");
return $c->uri_for($self->action_for("download"), $c->req->captures, $x, @path);
return $c->uri_for($self->action_for("download"), $c->req->captures, (split /\//, $x), @path);
}