Skip to content

Commit 2594467

Browse files
author
Tizian Schmidlin
authored
Implement security fix #81431
1 parent 8b6581c commit 2594467

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Classes/Controller/Pi1.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,21 +204,18 @@ public function main($content, $conf) {
204204
if($_COOKIE[$conf['cookieName']] && $_COOKIE[$conf['cookieName']] != $_COOKIE[$beCookieName]) {
205205
$res = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow('ses_id', 'be_sessions', 'ses_id = \'' . $_COOKIE[$beCookieName] . '\' ');
206206
if(empty($res)) {
207-
setcookie(
207+
$this->setCookie(
208208
$beCookieName,
209209
'',
210-
0,
211-
'/',
212-
$this->getCookieDomain()
210+
0
213211
);
214-
setcookie(
212+
$this->setCookie(
215213
$conf['cookieName'],
216214
'',
217-
0,
218-
'/',
219-
$this->getCookieDomain()
215+
0
220216
);
221217
header("Location: " . GeneralUtility::getIndpEnv("TYPO3_REQUEST_URL"));
218+
die;
222219
}
223220
}
224221
}

0 commit comments

Comments
 (0)