Permalink
Browse files

Exit if going to do a redirect.

  • Loading branch information...
1 parent 9edf1a5 commit 6fbdd4f9b068efacfd7f0fba048dbf9948078d22 @dracos dracos committed Jun 21, 2012
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) {

0 comments on commit 6fbdd4f

Please sign in to comment.