IPv6 for mod.php

This commit is contained in:
Savetheinternet 2011-02-17 20:41:00 +11:00
parent e0653147e4
commit 7e3905d5fd
2 changed files with 3 additions and 1 deletions

View file

@ -603,7 +603,7 @@
'mod'=>true
)
);
} elseif(preg_match('/^\/IP\/(\d+\.\d+\.\d+\.\d+)$/', $query, $matches)) {
} elseif(preg_match('/^\/IP\/(\d+\.\d+\.\d+\.\d+|' . $config['ipv6_regex'] . ')$/', $query, $matches)) {
// View information on an IP address
$ip = $matches[1];