Bug #90059
closedPHP-Error in IpAnonymizationUtility.php
100%
Description
If the processed IP addresses in IpAnonymizationUtility are not in the correct form, TYPO3 throws an uncaught exception:
Uncaught TYPO3 Exception strlen() expects parameter 1 to be string, boolean given
thrown in file [...]/typo3/sysext/core/Classes/Utility/IpAnonymizationUtility.php
in line 76
It is because the preceding inet_pton() returns false if the addresses are syntactically incorrect:
$packedAddress = inet_pton($address);
$length = strlen($packedAddress);
Updated by Gerrit Code Review almost 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62833
Updated by Gerrit Code Review almost 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62833
Updated by Gerrit Code Review almost 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62833
Updated by Gerrit Code Review almost 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62803
Updated by Georg Ringer almost 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8299492db8e5d0a960a521c97ab142963a033b66.
Updated by Gerrit Code Review almost 5 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62804
Updated by Georg Ringer almost 5 years ago
- Status changed from Under Review to Resolved
Applied in changeset 02976de354d5d1c52271dcceaee16bedcb0ee2d1.