mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Require CSRF token when changing settings
This commit is contained in:
@@ -130,6 +130,9 @@ function isinserverlist($addr) {
|
||||
|
||||
if(isset($_POST["field"]))
|
||||
{
|
||||
// Handle CSRF
|
||||
check_csrf(isset($_POST["token"]) ? $_POST["token"] : "");
|
||||
|
||||
// Process request
|
||||
switch ($_POST["field"]) {
|
||||
// Set DNS server
|
||||
|
||||
Reference in New Issue
Block a user