Update of /cvsroot/ispman/ispman/lib/ISPMan/DNSMan
In directory sc8-pr-cvs1:/tmp/cvs-serv28142
Modified Files:
Tag: rel_1_1-bugfixes
CNAMES.pm MXrecords.pm NSrecords.pm
Log Message:
fixing bug 881201: update of records was just deleting them
Index: CNAMES.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/DNSMan/CNAMES.pm,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- CNAMES.pm 17 Jan 2004 16:00:34 -0000 1.15
+++ CNAMES.pm 22 Jan 2004 00:23:07 -0000 1.15.2.1
@@ -109,7 +109,7 @@
my $self=shift;
my $r=shift;
# add/update record or delete?
- if ($r->param("host") and $r->param("ip")) {
+ if ($r->param("host") and $r->param("alias")) {
# delete old record
$self->deleteEntry($r->param("dn"));
# add record
Index: MXrecords.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/DNSMan/MXrecords.pm,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -u -d -r1.17 -r1.17.2.1
--- MXrecords.pm 17 Jan 2004 16:00:34 -0000 1.17
+++ MXrecords.pm 22 Jan 2004 00:23:07 -0000 1.17.2.1
@@ -85,7 +85,7 @@
my $r=shift;
# add/update record or delete?
- if ($r->param("host") and $r->param("ip")) {
+ if ($r->param("host") and $r->param("origion") and $r->param("pref")) {
# delete old record
$self->deleteEntry($r->param("dn"));
# add record
Index: NSrecords.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/DNSMan/NSrecords.pm,v
retrieving revision 1.12
retrieving revision 1.12.2.1
diff -u -d -r1.12 -r1.12.2.1
--- NSrecords.pm 17 Jan 2004 16:00:34 -0000 1.12
+++ NSrecords.pm 22 Jan 2004 00:23:07 -0000 1.12.2.1
@@ -70,7 +70,7 @@
my $self=shift;
my $r=shift;
# add/update record or delete?
- if ($r->param("host") and $r->param("ip")) {
+ if ($r->param("host") and $r->param("origion")) {
# delete old record
$self->deleteEntry($r->param("dn"));
# add record
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.