Skip to content

Commit c3b4a84

Browse files
author
Till Brehm
committed
Merge branch '6679-set-name-for-ispconfig-session-cookie-and-configure-ids-to-scan-this-cookie-only' into 'develop'
Resolve "Set name for ISPConfig session cookie and configure IDS to scan this cookie only" Closes #1876 and #6679 See merge request ispconfig/ispconfig3!1876
2 parents eaadfb9 + 99501a4 commit c3b4a84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interface/lib/classes/ids.inc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ public function start()
4949
require_once(ISPC_CLASS_PATH.'/IDS/Report.php');
5050
require_once(ISPC_CLASS_PATH.'/IDS/Event.php');
5151
require_once(ISPC_CLASS_PATH.'/IDS/Converter.php');
52+
53+
$ispcookie = array();
54+
$ispcookie['ISPCSESS'] = $_COOKIE['ISPCSESS'];
5255

5356
$ids_request = array(
5457
'GET' => $_GET,
5558
'POST' => $_POST,
56-
'COOKIE' => $_COOKIE
59+
'COOKIE' => $ispcookie
5760
);
5861

5962
$ids_init = IDS\Init::init(ISPC_CLASS_PATH.'/IDS/Config/Config.ini.php');

0 commit comments

Comments
 (0)