diff options
author | Patrick Webster <noxwizard@phpbb.com> | 2011-07-09 16:03:02 -0500 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-07-13 01:06:26 +0200 |
commit | ae8eee16cce29ea3ecae95ac19c49b0fa62ff978 (patch) | |
tree | a475d948276db721a1b6fc9a9082665f84c3a11d | |
parent | 99db533524177a986e255fe02bb2e23df02bb238 (diff) | |
download | forums-ae8eee16cce29ea3ecae95ac19c49b0fa62ff978.tar forums-ae8eee16cce29ea3ecae95ac19c49b0fa62ff978.tar.gz forums-ae8eee16cce29ea3ecae95ac19c49b0fa62ff978.tar.bz2 forums-ae8eee16cce29ea3ecae95ac19c49b0fa62ff978.tar.xz forums-ae8eee16cce29ea3ecae95ac19c49b0fa62ff978.zip |
[ticket/10257] Fix AAAA record parsing for old versions of Windows
Older versions of Windows use a different output format for AAAA records.
PHPBB3-10257
-rw-r--r-- | phpBB/includes/functions.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index e113a32a87..c878efcd6b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3689,8 +3689,13 @@ function phpbb_checkdnsrr($host, $type = 'MX') break; default: - case 'A': case 'AAAA': + if (stripos($line, "$host AAAA IPv6 address") === 0) + { + return true; + } + //No break, newer versions of Windows output AAAA in the same way as the A records + case 'A': if (!empty($host_matches)) { // Second line |