projects
/
catagits/Catalyst-Plugin-Session-State-Cookie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
->req->path has no leading /, which bites me so many times...
[catagits/Catalyst-Plugin-Session-State-Cookie.git]
/
lib
/
Catalyst
/
Plugin
/
Session
/
State
/
Cookie.pm
diff --git
a/lib/Catalyst/Plugin/Session/State/Cookie.pm
b/lib/Catalyst/Plugin/Session/State/Cookie.pm
index
a87ccc8
..
9cd6a46
100644
(file)
--- 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;