Skip to content

Commit

Permalink
potential SQL injection
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Dec 21, 2014
1 parent 2dfd046 commit 0cdd1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/guestbook.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@

// navigation bar creation
$page['start'] = 0;
if (isset($_GET['start']))
if (isset($_GET['start']) && is_numeric($_GET['start']) && $_GET['start'] >= 0)
{
$page['start'] = $_GET['start'];
}
Expand Down

0 comments on commit 0cdd1c3

Please sign in to comment.