From e76c31c9c681b563051869a328be0c1ee9dc240f Mon Sep 17 00:00:00 2001 From: glaszig Date: Thu, 6 May 2021 19:12:58 -0300 Subject: [PATCH] revert part of 3a41b52c to respect http method's purpose --- ajax/networking/get_netcfg.php | 2 +- app/js/custom.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax/networking/get_netcfg.php b/ajax/networking/get_netcfg.php index 50bc637a..78c0013e 100644 --- a/ajax/networking/get_netcfg.php +++ b/ajax/networking/get_netcfg.php @@ -3,7 +3,7 @@ require '../../includes/csrf.php'; require_once '../../includes/config.php'; -$interface = $_POST['iface']; +$interface = $_GET['iface']; if (isset($interface)) { // fetch dnsmasq.conf settings for interface diff --git a/app/js/custom.js b/app/js/custom.js index 0ffc1192..4bb85e07 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -179,7 +179,7 @@ Option toggles are set dynamically depending on the loaded configuration */ function loadInterfaceDHCPSelect() { var strInterface = $('#cbxdhcpiface').val(); - $.post('ajax/networking/get_netcfg.php',{iface:strInterface},function(data){ + $.get('ajax/networking/get_netcfg.php?iface='+strInterface,function(data){ jsonData = JSON.parse(data); $('#dhcp-iface')[0].checked = jsonData.DHCPEnabled; $('#txtipaddress').val(jsonData.StaticIP);