Bug #88094 ยป issue88094-fix.diff
typo3_src-9.5.7_b/typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php 2019-06-06 22:37:18.000000000 +0200 | ||
---|---|---|
if (empty($context['config'])) {
|
||
throw new \RuntimeException('Empty context config section given', 1489751362);
|
||
}
|
||
if (!hash_equals(GeneralUtility::hmac(json_encode($context['config']), 'InlineContext'), $context['hmac'])) {
|
||
if (!hash_equals(GeneralUtility::hmac((string)$context['config'], 'InlineContext'), (string)$context['hmac'])) {
|
||
throw new \RuntimeException('Hash does not validate', 1489751363);
|
||
}
|
||
return $context['config'];
|
||
return json_decode($context['config'], true);
|
||
}
|
||
/**
|
typo3_src-9.5.7_b/typo3/sysext/backend/Classes/Controller/SiteInlineAjaxController.php 2019-06-06 22:37:23.000000000 +0200 | ||
---|---|---|
if (empty($context['config'])) {
|
||
throw new \RuntimeException('Empty context config section given', 1522771632);
|
||
}
|
||
if (!hash_equals(GeneralUtility::hmac(json_encode($context['config']), 'InlineContext'), $context['hmac'])) {
|
||
if (!hash_equals(GeneralUtility::hmac((string)$context['config'], 'InlineContext'), (string)$context['hmac'])) {
|
||
throw new \RuntimeException('Hash does not validate', 1522771640);
|
||
}
|
||
return $context['config'];
|
||
return json_decode($context['config'], true);
|
||
}
|
||
/**
|
typo3_src-9.5.7_b/typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php 2019-06-06 22:03:49.000000000 +0200 | ||
---|---|---|
'table' => $foreign_table,
|
||
'md5' => md5($nameObject)
|
||
];
|
||
$configJson = json_encode($config);
|
||
$this->inlineData['config'][$nameObject . '-' . $foreign_table] = [
|
||
'min' => $config['minitems'],
|
||
'max' => $config['maxitems'],
|
||
... | ... | |
'uid' => $top['uid']
|
||
],
|
||
'context' => [
|
||
'config' => $config,
|
||
'hmac' => GeneralUtility::hmac(json_encode($config), 'InlineContext'),
|
||
'config' => $configJson,
|
||
'hmac' => GeneralUtility::hmac($configJson, 'InlineContext'),
|
||
],
|
||
];
|
||
$this->inlineData['nested'][$nameObject] = $this->data['tabAndInlineStack'];
|