Properly check validity of sort parameter.
This commit is contained in:
@@ -213,7 +213,8 @@ if (! isset($sot_ready)) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Make sure the sort type is implemented
|
// Make sure the sort type is implemented
|
||||||
if ($sort = $sortable_name_mappings[$_REQUEST['sort']]) {
|
if (isset($sortable_name_mappings[$_REQUEST['sort']])) {
|
||||||
|
$sort = $sortable_name_mappings[$_REQUEST['sort']];
|
||||||
if ($_REQUEST['sort_order'] == 'DESC') {
|
if ($_REQUEST['sort_order'] == 'DESC') {
|
||||||
$sort_order = 'DESC';
|
$sort_order = 'DESC';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user