summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
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:07:42 -0300
commit1d7a414705794f2527dc1b7b3bb5419db1024bb6 (patch)
tree82815e75fcf07de42d1ddcb77a16808dca4807d3 /src/usr/local/www
parentf860a1ea8e836dd75f2a4012c1a773a4c75fc4ab (diff)
downloadpfsense-1d7a414705794f2527dc1b7b3bb5419db1024bb6.zip
pfsense-1d7a414705794f2527dc1b7b3bb5419db1024bb6.tar.gz
Restore CSRF customizations
Diffstat (limited to 'src/usr/local/www')
-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