clean up a bit

This commit is contained in:
leah 2021-08-20 17:09:27 +01:00
parent 6c83bc5a2e
commit 936b4ab0ff
1 changed files with 1 additions and 2 deletions

View File

@ -18,10 +18,9 @@
</form>
<?php
$command = $_GET["command"];
echo $command;
$output=null;
$retval=null;
exec('man --html=cat '.escapeshellarg($command) , $output, $retval);
exec('man --html=cat'.' '.escapeshellarg($command) , $output, $retval);
echo "Returned with status $retval and output:\n";
foreach ($output as $line): ?>
<?=$line?>