Changeset 565 for trunk


Ignore:
Timestamp:
Jul 24, 2007, 9:20:11 PM (12 years ago)
Author:
Nick Burch
Message:

Handle negative northings

Location:
trunk/npemap.org.uk/cgi
Files:
2 edited

Legend:

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

    r564 r565  
    7474    foreach (qw(minnorthing maxnorthing)) {
    7575        if (($cgi->param($_) > $grid_max{'northing'}->{$grid}) or
    76             ($cgi->param($_) < 87000)) {
     76            ($cgi->param($_) < -87000)) {
    7777            print_err("Parameter '$_' must be an integer between -87,000 and ".($grid_max{'northing'}->{$grid}/1000).",000");
    7878            next REQUEST;
  • trunk/npemap.org.uk/cgi/submit.fcgi

    r564 r565  
    6969        # (Channel islands stop at -87,000)
    7070    if (($cgi->param('northing') > 1300000) or
    71                 ($cgi->param($_) < 87000)) {
     71                ($cgi->param($_) < -87000)) {
    7272                print_err("Parameter '$_' must be an integer between -87,000 and ".($grid_max{'northing'}->{$grid}/1000).",000");
    7373        next REQUEST;
Note: See TracChangeset for help on using the changeset viewer.