diff options
author | Yorhel <git@yorhel.nl> | 2010-11-02 18:47:15 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-11-02 18:48:22 +0100 |
commit | d6cbbc9025ccffae5ec590c692676ac944775eb0 (patch) | |
tree | 792c7cb40c02158f278148b0a46ba8ca06ce8a8b /lib/VNDB/Handler/VNBrowse.pm | |
parent | 5d44709dd98c97cb8ef9a59340990a5ecf8f62db (diff) |
Prefix all cookies with a configurable cookie_prefix
This replaces the "cookie_auth" setting, and applies to all cookies in
use by VNDB.
Diffstat (limited to 'lib/VNDB/Handler/VNBrowse.pm')
-rw-r--r-- | lib/VNDB/Handler/VNBrowse.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNBrowse.pm b/lib/VNDB/Handler/VNBrowse.pm index f4f98194..f3193b57 100644 --- a/lib/VNDB/Handler/VNBrowse.pm +++ b/lib/VNDB/Handler/VNBrowse.pm @@ -25,7 +25,7 @@ sub list { { name => 'pl', required => 0, multi => 1, enum => $self->{platforms}, default => '' }, { name => 'ti', required => 0, default => '', maxlength => 200 }, { name => 'te', required => 0, default => '', maxlength => 200 }, - { name => 'sp', required => 0, default => $self->reqCookie('tagspoil') =~ /^([0-2])$/ ? $1 : 0, enum => [0..2] }, + { name => 'sp', required => 0, default => $self->reqCookie($self->{cookie_prefix}.'tagspoil') =~ /^([0-2])$/ ? $1 : 0, enum => [0..2] }, ); return 404 if $f->{_err}; $f->{q} ||= $f->{sq}; |