mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
Merge pull request #545 from SysVoid/patch-8
Fix Undefined Var & Require $_POST['cmd'].
This commit is contained in:
commit
d3a7c6fac7
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue