mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
SortBox: Fix too strict sort param check
One was able to produce invalid SQL or other errors by adding "sort=" as parameter.
This commit is contained in:
parent
43848989ae
commit
3d60e60842
@ -118,7 +118,7 @@ class SortBox extends AbstractWidget
|
||||
if ($request === null) {
|
||||
$request = Icinga::app()->getRequest();
|
||||
}
|
||||
if (null === $sort = $request->getParam('sort')) {
|
||||
if (! ($sort = $request->getParam('sort'))) {
|
||||
list($sort, $dir) = $this->getSortDefaults();
|
||||
} else {
|
||||
list($_, $dir) = $this->getSortDefaults($sort);
|
||||
|
Loading…
x
Reference in New Issue
Block a user