Skip to content
Snippets Groups Projects
Commit cbf573a1 authored by Stephan Großberndt's avatar Stephan Großberndt Committed by Benni Mack
Browse files

[BUGFIX] Fix exception in IpAnonymizationTask after upgrade from TYPO3 8

This patch adds a cast to the property `$mask` before handing it over to
`IpAnonymizationUtility::anonymizeIp()` as this method requires `$mask`
to be an `int`. This is necessary as when the task was created and saved
in TYPO3 8 it was serialized as `string`.

Resolves: #89646
Releases: master, 9.5
Change-Id: Ie0745028882991204bfa5c25ec1a4bbb7955b7c2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62300


Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarDaniel Gorges <daniel.gorges@b13.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarDaniel Gorges <daniel.gorges@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent 0c86e553
No related merge requests found
......@@ -118,7 +118,7 @@ class IpAnonymizationTask extends AbstractTask
$connection->update(
$table,
[
$configuration['ipField'] => IpAnonymizationUtility::anonymizeIp($ip, $this->mask)
$configuration['ipField'] => IpAnonymizationUtility::anonymizeIp($ip, (int)$this->mask)
],
[
'uid' => $row['uid']
......
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