Use intval to prevent XSS instead, and use numeric to check valid datatype
Fix #12382 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
parent
54063a75c3
commit
adcaf7ca4b
@ -461,7 +461,7 @@ class TableSearchController extends TableController
|
||||
}
|
||||
$key = array_search($field, $this->_columnNames);
|
||||
$search_index = 0;
|
||||
if (PMA_isValid($_REQUEST['it'], 'integer')) {
|
||||
if (PMA_isValid(intval($_REQUEST['it']), 'numeric')) {
|
||||
$search_index = $_REQUEST['it'];
|
||||
}
|
||||
$properties = $this->getColumnProperties($search_index, $key);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user