Merge pull request #545 from SysVoid/patch-8

Fix Undefined Var & Require $_POST['cmd'].
This commit is contained in:
Serghey Rodin 2015-12-17 16:00:02 +02:00
commit d3a7c6fac7

View file

@ -32,6 +32,17 @@ if (isset($_POST['user']) || isset($_POST['hash'])) {
exit;
}
// Define the command to use
if (isset($_POST['cmd']))
{
$cmd = escapeshellarg($_POST['cmd']);
} else
{
// If there's no command, just exit.
echo 'No command specified.';
exit;
}
// Prepare for iteration
$args = [];
$i = 0;