Skip to content

Commit

Permalink
Use better ID filtering
Browse files Browse the repository at this point in the history
Toward #72, but kicking off #90.
  • Loading branch information
waldoj committed Sep 16, 2019
1 parent b942a34 commit 2c8770b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion business.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function get_content($url)
/*
* If the business ID has an invalid format
*/
elseif (strlen($_GET['id'] != 9))
elseif ( strlen($_GET['id']) < 7 || strlen($_GET['id']) > 9 )
{
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
exit();
Expand Down

0 comments on commit 2c8770b

Please sign in to comment.