Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Exit if going to do a redirect.

  • Loading branch information...
commit 6fbdd4f9b068efacfd7f0fba048dbf9948078d22 1 parent 9edf1a5
@dracos dracos authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  postcode.php
View
2  postcode.php
@@ -20,6 +20,7 @@
} else {
header("Location: http://www.uk-postcodes.com/postcode/".strtoupper($postcode));
}
+ exit;
}
if (strstr($postcode, " ")) {
@@ -30,6 +31,7 @@
} else {
header("Location: http://www.uk-postcodes.com/postcode/".str_replace(" ", "", $postcode));
}
+ exit;
}
if (strlen($postcode) == 6) {
Please sign in to comment.
Something went wrong with that request. Please try again.