Ensure we have integer as position

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-06-17 13:00:45 +02:00
parent 009148075f
commit aef5df7e13

View File

@ -93,7 +93,7 @@ if (isset($_REQUEST['total_rows']) && $_REQUEST['total_rows']) {
$total_rows = PMA_getCentralColumnsCount($db);
}
if (PMA_isValid($_REQUEST['pos'], 'integer')) {
$pos = $_REQUEST['pos'];
$pos = intval($_REQUEST['pos']);
} else {
$pos = 0;
}