[BUGFIX] t3lib_div::cmpFQDN() lacks support for IPv6 and hostnames
authorXavier Perseguers <typo3@perseguers.ch>
Tue, 12 Jul 2011 08:16:01 +0000 (10:16 +0200)
committerXavier Perseguers <xavier@typo3.org>
Sun, 31 Jul 2011 11:24:02 +0000 (13:24 +0200)
commit0746cf9c9eb382d8d03b1cd2ae85a8110427411f
tree0495dafbfb9c3bac94392795b2c1bd4b95567ca8
parent3a2d4ccb519031c09f00c0a4f4d39a6973ddbf8b
[BUGFIX] t3lib_div::cmpFQDN() lacks support for IPv6 and hostnames

Add checks for IPv4 and IPv6. Otherwise take input as hostname.
Implement correct (recursive) wildcard-checks.
Add unit tests.

Change-Id: I721fb6d376ee9ef01352799dfad1813b38e87ded
Resolves: #27217
Releases: 4.5, 4.6
Reviewed-on: http://review.typo3.org/2526
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_div.php
tests/t3lib/class.t3lib_divTest.php