[Maypole] bug in Maypole::Authentication::UserSessionCookie

From: Brian Glass (brian at glassbrian.com)
Date: Fri Sep 24 2004 - 17:31:37 BST


There is a bug in |Maypole::Authentication::UserSessionCookie|
<http://search.cpan.org/perldoc?Maypole::Authentication::UserSessionCookie>.
In get_user where the Cookie is being defined the path is defined as:

    URI->new($r->config->{base_uri})->path

It should be:

    URI->new($r->config->{uri_base})->path

This is a relatively recent version from CPAN. It claims to be version 1.4.

You can either patch the file or you can work around this by putting
something in base_uri in your handler class like so:

    BeerDB->config->{uri_base} = "http://beerdb.com/";
    BeerDB->config->{base_uri} = BeerDB->config->{uri_base};

Correct me if I'm wrong.

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT