mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Enable CSRF protection (#10447)
* Enable CSRF protection * fix style issues
This commit is contained in:
@@ -136,6 +136,7 @@ if (empty($vars['bare']) || $vars['bare'] == "no") {
|
||||
<div class="row" style="margin-top:5px;">
|
||||
<div class="col-md-6">
|
||||
<form class="form-inline" onsubmit="dashboard_add(this); return false;" name="add_form" id="add_form">
|
||||
<?php echo csrf_field() ?>
|
||||
<div class="col-sm-3 col-sx-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
@@ -158,6 +159,7 @@ if (empty($vars['bare']) || $vars['bare'] == "no") {
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<form class="form-inline" onsubmit="dashboard_edit(this); return false;">
|
||||
<?php echo csrf_field() ?>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
|
||||
Reference in New Issue
Block a user