]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - api/installation2.php
Setup: Use HTTP POST instead of GET when testing MySQL and RPC credentials.
[irc/unrealircd/unrealircd-webpanel.git] / api / installation2.php
index b3545e1e1cbb9fb06cfece1298aa7219df54ea24..e9dde108a6090f01c646e80bbb17dfda86a49fc6 100644 (file)
@@ -6,10 +6,10 @@ require_once "../inc/common.php";
 if (isset($config['unrealircd']) && empty($config['unrealircd']['host']))
                die(json_encode(["error" => "Already configured."]));
 
-if (!isset($_GET) || empty($_GET))
+if (!isset($_POST) || empty($_POST))
                die(json_encode(["error" => "Incorrect parameters"]));
 
-foreach($_GET as $key => $str)
+foreach($_POST as $key => $str)
                ${$key} = $str;
 
 if ($method == "rpc")