Incorporate upstream changes

Signed-off-by: Matthias Rank <development@m-rank.de>
This commit is contained in:
Matthias rank
2020-06-21 13:46:00 +02:00
parent b597a0fcbb
commit 773fed0f21
4 changed files with 23 additions and 19 deletions

View File

@@ -12,7 +12,8 @@
log_and_die('Not allowed (login session invalid or expired, please relogin on the Pi-hole dashboard)!');
}
switch ($_REQUEST['action'])
switch ($_POST['action'])
{
case 'get': echo json_encode(echoCustomCNAMEEntries()); break;
case 'add': echo json_encode(addCustomCNAMEEntry()); break;
@@ -20,4 +21,6 @@
default:
die("Wrong action");
}
?>