Skip to content
Snippets Groups Projects
Commit b552afaf authored by Torben Hansen's avatar Torben Hansen Committed by Benni Mack
Browse files

[BUGFIX] Avoid exception in ContentObjectRenderer with PHP8

This patch ensures that the getQuery() function only uses the
minus operator to negate the $storagePid variable, if the variable
can be interpreted as an integer.

Resolves: #96321
Releases: main, 11.5
Change-Id: Idacd43fd6639218fc1126bffcd43e78338f18e0e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72704


Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent d42f1586
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment