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:
		@@ -170,6 +170,7 @@ echo '
 | 
			
		||||
<div class="panel-group" id="accordion">
 | 
			
		||||
    <form class="form-horizontal" role="form" action="" method="post">
 | 
			
		||||
';
 | 
			
		||||
echo csrf_field();
 | 
			
		||||
 | 
			
		||||
echo generate_dynamic_config_panel('General alert settings', $config_groups, $general_conf);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -103,6 +103,7 @@ echo '
 | 
			
		||||
<div class="panel-group" id="accordion">
 | 
			
		||||
    <form class="form-horizontal" role="form" action="" method="post">
 | 
			
		||||
';
 | 
			
		||||
echo csrf_field();
 | 
			
		||||
 | 
			
		||||
echo generate_dynamic_config_panel('Location Geocoding', $config_groups, $location_conf);
 | 
			
		||||
echo generate_dynamic_config_panel('Oxidized integration', $config_groups, $oxidized_conf);
 | 
			
		||||
 
 | 
			
		||||
@@ -84,6 +84,7 @@ echo '
 | 
			
		||||
<div class="panel-group" id="accordion">
 | 
			
		||||
    <form class="form-horizontal" role="form" action="" method="post">
 | 
			
		||||
';
 | 
			
		||||
echo csrf_field();
 | 
			
		||||
 | 
			
		||||
echo generate_dynamic_config_panel('Graph settings', $config_groups, $graph_conf);
 | 
			
		||||
echo generate_dynamic_config_panel('Search settings', $config_groups, $search_conf);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user