Commit 508c33e5 authored by Chris Graham's avatar Chris Graham

Fixed MANTIS-4122 (DNS lookup code broken)

parent c2e3ae61
......@@ -3833,8 +3833,8 @@ function cms_gethostbyname($hostname)
}
if ($ip_address == '') {
if (php_function_allowed('gethostbyaddr')) {
$ip_address = @gethostbyaddr($ip_address);
if (php_function_allowed('gethostbyname')) {
$ip_address = @gethostbyname($hostname);
}
}
......
Markdown is supported
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