summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-04-10 15:05:39 -0300
committerRenato Botelho <renato@netgate.com>2017-04-10 15:05:39 -0300
commit48da62b4932a041d044e70e2b2e116912a08dac7 (patch)
tree592892c093d40f9e344463f28db031fead354361 /src/usr/local
parentdc668baa84a0809ac04e7421fa4a17b341572494 (diff)
downloadpfsense-48da62b4932a041d044e70e2b2e116912a08dac7.zip
pfsense-48da62b4932a041d044e70e2b2e116912a08dac7.tar.gz
Restore CSRF customizations
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/csrf/csrf-magic.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/csrf/csrf-magic.php b/src/usr/local/www/csrf/csrf-magic.php
index 65db19f..c8f8ce4 100644
--- a/src/usr/local/www/csrf/csrf-magic.php
+++ b/src/usr/local/www/csrf/csrf-magic.php
@@ -13,6 +13,8 @@
* This library is PHP4 and PHP5 compatible.
*/
+include_once('phpsessionmanager.inc');
+
// CONFIGURATION:
/**
@@ -350,7 +352,7 @@ function csrf_conf($key, $val) {
*/
function csrf_start() {
if ($GLOBALS['csrf']['auto-session'] && !session_id()) {
- session_start();
+ phpsession_begin();
}
}
OpenPOWER on IntegriCloud