File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 19
19
use TYPO3 \CMS \Core \Security \RequestToken ;
20
20
use TYPO3 \CMS \Core \Utility \GeneralUtility ;
21
21
use TYPO3 \CMS \Extbase \DomainObject \AbstractDomainObject ;
22
-
23
22
use TYPO3 \CMS \Extbase \Persistence \Generic \LazyLoadingProxy ;
24
-
25
23
use TYPO3 \CMS \Fluid \ViewHelpers \FormViewHelper ;
26
24
27
25
use function base64_encode ;
@@ -183,11 +181,17 @@ protected function renderHiddenReferrerFields(): string
183
181
);
184
182
$ this ->addHiddenField (
185
183
'__referrer[arguments] ' ,
186
- $ this ->hashService ->appendHmac (base64_encode (serialize ($ request ->getArguments ())))
184
+ $ this ->hashService ->appendHmac (
185
+ base64_encode (serialize ($ request ->getArguments ())),
186
+ class_exists (\TYPO3 \CMS \Extbase \Security \HashScope::class) ? \TYPO3 \CMS \Extbase \Security \HashScope::class::ReferringArguments->prefix () : ''
187
+ )
187
188
);
188
189
$ this ->addHiddenField (
189
190
'__referrer[@request] ' ,
190
- $ this ->hashService ->appendHmac (json_encode ($ actionRequest ))
191
+ $ this ->hashService ->appendHmac (
192
+ json_encode ($ actionRequest ),
193
+ class_exists (\TYPO3 \CMS \Extbase \Security \HashScope::class) ? \TYPO3 \CMS \Extbase \Security \HashScope::class::ReferringRequest->prefix () : ''
194
+ )
191
195
);
192
196
193
197
return '' ;
You can’t perform that action at this time.
0 commit comments