Changeset 411 for trunk/DNSDB.pm


Ignore:
Timestamp:
10/05/12 14:04:00 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Check and munge state in DNSDB::updateUser(), same as addUser().
Clean up copy-paste job for dns-rpc.cgi updateUser and make sure it
works. See #43.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r410 r411  
    28232823
    28242824  my $resultmsg = '';
     2825
     2826  # Munge in some alternate state values
     2827  $state = 1 if $state =~ /^active$/;
     2828  $state = 1 if $state =~ /^on$/;
     2829  $state = 0 if $state =~ /^inactive$/;
     2830  $state = 0 if $state =~ /^off$/;
    28252831
    28262832  # Allow transactions, and raise an exception on errors so we can catch it later.
Note: See TracChangeset for help on using the changeset viewer.