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> </form>
<?php <?php
$command = $_GET["command"]; $command = $_GET["command"];
echo $command;
$output=null; $output=null;
$retval=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"; echo "Returned with status $retval and output:\n";
foreach ($output as $line): ?> foreach ($output as $line): ?>
<?=$line?> <?=$line?>