Changeset 23


Ignore:
Timestamp:
10/26/04 11:19:53 (20 years ago)
Author:
Kris Deugau
Message:

Add tweak to allow newly-entered custIDs to end with "-nn"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r22 r23  
    11411141      printAndExit("Please enter a customer ID.");
    11421142    }
    1143     if ($webvar{custid} !~ /^(?:\d{10}|\d{7}|STAFF)$/) {
     1143    if ($webvar{custid} !~ /^(?:\d{10}|\d{7}|STAFF)(?:-\d\d?)?$/) {
    11441144      printAndExit("Please enter a valid customer ID- this must be a 7- or 10-digit number, or STAFF for static IPs for staff.");
    11451145    }
Note: See TracChangeset for help on using the changeset viewer.