mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
validate dashboard id (#12219)
This commit is contained in:
@ -19,6 +19,11 @@ class OverviewController extends Controller
|
||||
{
|
||||
public function index(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'dashboard' => 'integer',
|
||||
'bare' => 'nullable|in:yes',
|
||||
]);
|
||||
|
||||
$view = Config::get('front_page');
|
||||
|
||||
if (view()->exists("overview.custom.$view")) {
|
||||
|
Reference in New Issue
Block a user