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 /util/jsgen.pl | |
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 'util/jsgen.pl')
-rwxr-xr-x | util/jsgen.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/jsgen.pl b/util/jsgen.pl index 1ad8fb53..2235d289 100755 --- a/util/jsgen.pl +++ b/util/jsgen.pl @@ -85,6 +85,7 @@ sub jsgen { my $js = encode_utf8(l10n()) . "\n"; $js .= sprintf "rlst_rstat = [ %s ];\n", join ', ', map qq{"$_"}, @{$S{rlst_rstat}}; $js .= sprintf "rlst_vstat = [ %s ];\n", join ', ', map qq{"$_"}, @{$S{rlst_vstat}}; + $js .= sprintf "cookie_prefix = '%s';\n", $S{cookie_prefix}; open my $JS, '<', "$ROOT/data/script.js" or die $!; $js .= join '', <$JS>; close $JS; |