Skip to content

Commit

Permalink
Fix bad regex in RRPTR insert method
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Vicente committed Sep 28, 2011
1 parent 29babdd commit c62bfd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Netdot/Model/RRPTR.pm
Expand Up @@ -50,7 +50,7 @@ sub insert {
$logger->debug("Netdot::Model::RRPTR: Figuring out owner for ".$ipb->get_label);

my $zone = blessed($argv->{zone}) ? $argv->{zone} : Zone->retrieve($argv->{zone});
unless ( $zone->name =~ /(\.in-addr\.arpa)|(\.ip6)$/ ){
unless ( $zone->name =~ /(?:\.in-addr)|(?:\.ip6)\.arpa$/ ){
$class->throw_user(sprintf("Zone %s is not a reverse zone", $zone->name));
}
my $name = $class->get_name(ipblock=>$ipb);
Expand Down

0 comments on commit c62bfd2

Please sign in to comment.