diff options
| author | czaks <marcin@6irc.net> | 2013-08-17 22:42:28 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-17 22:42:28 -0400 |
| commit | f6c25382b9708eff88a575ba199a645fc3dac420 (patch) | |
| tree | afb7eaa926e0f12c7397c71d9f6f7b01b0534ace | |
| parent | 946c49ac5aa00a14cf6e8333e0802a719205ccfa (diff) | |
| parent | 2eb68ac398ba3aced1815c1491b0a1664b8c6e26 (diff) | |
Merge branch 'master' of https://github.com/ctrlcctrlv/Tinyboard
| -rw-r--r-- | inc/config.php | 3 | ||||
| -rw-r--r-- | inc/mod/auth.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index e9e52aaf..ae3ce0c0 100644 --- a/inc/config.php +++ b/inc/config.php @@ -154,6 +154,9 @@ // Make this something long and random for security. $config['cookies']['salt'] = 'abcdefghijklmnopqrstuvwxyz09123456789!@#$%^&*()'; + // Whether or not you can access the mod cookie in JavaScript. Most users should not need to change this. + $config['cookies']['httponly'] = true; + // Used to salt secure tripcodes ("##trip") and poster IDs (if enabled). $config['secure_trip_salt'] = ')(*&^%$#@!98765432190zyxwvutsrqponmlkjihgfedcba'; diff --git a/inc/mod/auth.php b/inc/mod/auth.php index bfab0f7e..0733646f 100644 --- a/inc/mod/auth.php +++ b/inc/mod/auth.php @@ -72,7 +72,7 @@ function setCookies() { $mod['hash'][0] . // password ':' . $mod['hash'][1], // salt - time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, true); + time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, $config['cookies']['httponly']); } function destroyCookies() { |
