Merge pull request #466 from pi-hole/fix/csrf-security

Add CSRF token
This commit is contained in:
Mcat12
2017-04-06 16:22:18 -04:00
committed by GitHub
6 changed files with 44 additions and 6 deletions

View File

@@ -159,6 +159,9 @@ function readAdlists()
if(isset($_POST["field"]))
{
// Handle CSRF
check_csrf(isset($_POST["token"]) ? $_POST["token"] : "");
// Process request
switch ($_POST["field"]) {
// Set DNS server