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…
Reference in New Issue