X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session-State-Cookie.git;a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FSession%2FState%2FCookie.pm;h=9cd6a467100b7307b957698c22427a07078d8eef;hp=a87ccc892602cd8c20989e48036f5b39c564620c;hb=91e4fe2d76c8198894f01c4e4de03c6fb1fb7d42;hpb=8bdcbb468aedff34275a7fb30b18ea8be066255b diff --git a/lib/Catalyst/Plugin/Session/State/Cookie.pm b/lib/Catalyst/Plugin/Session/State/Cookie.pm index a87ccc8..9cd6a46 100644 --- a/lib/Catalyst/Plugin/Session/State/Cookie.pm +++ b/lib/Catalyst/Plugin/Session/State/Cookie.pm @@ -49,7 +49,7 @@ sub cookie_is_rejecting { my ( $c, $cookie ) = @_; if ( $cookie->{path} ) { - return 1 if index $c->request->path, $cookie->{path}; + return 1 if index '/'.$c->request->path, $cookie->{path}; } return 0;