Redirects // Re: [Catalyst] Re: forwarding to chained actions
Christopher H. Laco
claco at chrislaco.com
Fri Apr 27 19:57:47 GMT 2007
Dave Rolsky wrote:
> On Fri, 27 Apr 2007, Bill Moseley wrote:
> =
>> sub post_redirect {
>> my ( $c, $location ) =3D @_;
>> my ($version) =3D $c->request->protocol =3D~ m/(\d+\.\d+)/;
>>
>> # Make location absolute
>> $location =3D $c->uri_for( $location )
>> unless $location =3D~ /http/;
> =
> I'd make that regex /^http/
> =
> It's not inconceivable there could be a path with http in it.
Well, if it's going to be THAT kind of party... ^ should really be \A
:-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070427/0b44=
e272/signature.pgp
More information about the Catalyst
mailing list