Changeset 372


Ignore:
Timestamp:
Nov 19, 2006, 11:47:31 AM (13 years ago)
Author:
David Sheldon
Message:

Allow searching with just the outward.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/cgi/geocoder.fcgi

    r371 r372  
    6666        if(defined $cgi->param("postcode")) {
    6767                $postcode = uc($cgi->param("postcode"));
    68                 ($outward,$inward) = ($postcode =~ /^([A-Z]+\d+[A-Z]?)\s*(\d[A-Z][A-Z])$/);
    69                 unless($outward && $inward) {
     68                ($outward,$inward) = ($postcode =~ /^([A-Z]+\d+[A-Z]?)\s*(\d[A-Z][A-Z])?$/);
     69                unless($outward) {
    7070                        print_err ("Invalid postcode '$postcode' supplied");
    7171                        next REQUEST;
Note: See TracChangeset for help on using the changeset viewer.