Ignore:
Timestamp:
Jul 24, 2007, 9:17:01 PM (14 years ago)
Author:
Nick Burch
Message:

Handle negative northings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/get-postcodes.fcgi

    r544 r564  
    7171
    7272    # Are the Northings in a valid range?
     73        # (Channel islands stop at -87,000)
    7374    foreach (qw(minnorthing maxnorthing)) {
    7475        if (($cgi->param($_) > $grid_max{'northing'}->{$grid}) or
    75             ($cgi->param($_) < 0)) {
    76             print_err("Parameter '$_' must be an integer between 0 and ".($grid_max{'northing'}->{$grid}/1000).",000");
     76            ($cgi->param($_) < 87000)) {
     77            print_err("Parameter '$_' must be an integer between -87,000 and ".($grid_max{'northing'}->{$grid}/1000).",000");
    7778            next REQUEST;
    7879        }
Note: See TracChangeset for help on using the changeset viewer.