X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/17cca93a9bc277ea8a833e23d6b0b481cdfaaac3..41aad10cbe0755aee50f597cb2cadd3029de7e1d:/settings/install2.php diff --git a/settings/install2.php b/settings/install2.php index 720f0f2..3f9806b 100644 --- a/settings/install2.php +++ b/settings/install2.php @@ -181,7 +181,16 @@ $writable = (is_writable("../config/")) ? true: false; test_conn.addEventListener('click', e => { test_conn.classList.add('disabled'); test_conn.innerHTML = "Checking..."; - fetch(BASE_URL + 'api/installation2.php?method=rpc&host='+rpc_host.value+'&port='+rpc_port.value+'&user='+rpc_user.value+'&password='+rpc_pass.value+'&tls_verify='+rpc_tls.checked) + fetch(BASE_URL + 'api/installation2.php', { + method:'POST', + headers: {'Content-Type':'application/x-www-form-urlencoded'}, + body: 'method=rpc&'+ + 'host='+encodeURIComponent(rpc_host.value)+ + '&port='+encodeURIComponent(rpc_port.value)+ + '&user='+encodeURIComponent(rpc_user.value)+ + '&password='+encodeURIComponent(rpc_pass.value)+ + '&tls_verify='+rpc_tls.checked + }) .then(response => response.json()) .then(data => { if (data.success)