Ignore:
Timestamp:
11/26/04 14:30:49 (19 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Bugfix for assigning a block to someone in Burk's Falls
(or any other city with an apostrophe)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/main.cgi

    r76 r82  
    932932  $html =~ s|\$\$ALLOC_FROM\$\$|$alloc_from|g;
    933933  $html =~ s|\$\$CIDR\$\$|$cidr|g;
     934  $webvar{city} = desanitize($webvar{city});
    934935  $html =~ s|\$\$CITY\$\$|$webvar{city}|g;
    935936  $html =~ s|\$\$CUSTID\$\$|$webvar{custid}|g;
     
    11571158      printAndExit("Please enter a customer ID.");
    11581159    }
    1159     if ($webvar{custid} !~ /^(?:\d{10}|\d{7}|STAFF)(?:-\d\d?)?$/) {
     1160    if ($webvar{custid} !~ /^(?:\d{10}|\d{7}|STAFF|TEMP)(?:-\d\d?)?$/) {
    11601161      # Force uppercase for now...
    11611162      $webvar{custid} =~ tr/a-z/A-Z/;
Note: See TracChangeset for help on using the changeset viewer.