From 5f0290f0bb14a19f1d3e477fe0a127f9752751f5 Mon Sep 17 00:00:00 2001 From: Maurice Meyer Date: Mon, 6 Jun 2016 10:13:59 +0200 Subject: [PATCH] page parameter is now checked with isset to prevent errors if it is not supplied --- api/domains.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/domains.php b/api/domains.php index 4e67d6d..fc02d87 100644 --- a/api/domains.php +++ b/api/domains.php @@ -29,7 +29,7 @@ if(!isset($input->csrfToken) || $input->csrfToken !== $_SESSION['csrfToken']) { if(isset($input->action) && $input->action == "getDomains") { // Check if the requested page is a number - if(!(is_int($input->page) && $input->page > 0)) { + if(!(isset($input->page) && is_int($input->page) && $input->page > 0)) { echo "Requested page must be a positive number!"; exit(); }