Skip to content

Commit

Permalink
Fixed issues described in poweradmin#111.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmondas Girkantas committed Apr 5, 2014
1 parent 3c511c8 commit bef67b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion add_zone_slave.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
error(ERR_DNS_HOSTNAME);
} elseif (domain_exists($zone)) {
error(ERR_DOMAIN_EXISTS);
} elseif (!is_valid_ipv4($master) && !is_valid_ipv6($master)) {
} elseif (!is_valid_ipv4($master, false) && !is_valid_ipv6($master)) {
error(ERR_DNS_IP);
} else {
if (add_domain($zone, $owner, $type, $master, 'none')) {
Expand Down
2 changes: 1 addition & 1 deletion inc/record.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ function get_supermasters() {
*/
function supermaster_exists($master_ip) {
global $db;
if (is_valid_ipv4($master_ip) || is_valid_ipv6($master_ip)) {
if (is_valid_ipv4($master_ip, false) || is_valid_ipv6($master_ip)) {
$result = $db->queryOne("SELECT ip FROM supermasters WHERE ip = " . $db->quote($master_ip, 'text'));
return ($result ? true : false);
} else {
Expand Down

0 comments on commit bef67b9

Please sign in to comment.