summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorctrlcctrlv <wizardchan@hush.com>2013-08-18 01:44:36 +0000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-19 03:01:15 +1000
commit47dec494658566772a0bdf9c0f2a97113acfb481 (patch)
treeb40f84fb9cfd1b4ebf3944e21f63deaa240f35f7 /inc/config.php
parent45bfd2a095cfc60781fadc12772702fd29d4774d (diff)
Optionally access mod cookie in JavaScript
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index f0e3ea9f..ba336d48 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -1070,6 +1070,9 @@
// Replace ?/config with a simple text editor for editing inc/instance-config.php.
$config['mod']['config_editor_php'] = false;
+ // Whether or not you can access the mod cookie in JavaScript. Most users should not need to change this.
+ $config['mod']['cookie_httponly'] = true;
+
/*
* ====================
* Mod permissions