pezholio/UK-Postcodes — pull request #1 by dracos (2012-06-21 23:56:15+00:00)
Title: Improve postcode.php

Hi,

For any two-tier council, postcode.php is making two identical requests to mapit. It is also making its mapit requests invalidly, either by not escaping properly postcodes with a space, or by not using a postcode at all (if from a lat/lon request). It doesn't check the database results for parishes correctly, and doesn't exit when doing a redirect, leading to mapit calls being made which are then made again after the redirect takes place.

This pull request should fix all the above.