forked from root/threadr.lostcave.ddnss.de
added HTML code escaping ... ’cause issues
parent
da055d59c6
commit
a4f45ac04b
|
@ -50,7 +50,7 @@ $git_commands = get_command_list("commands_git.conf");
|
|||
$command = $command . " 2>&1";
|
||||
}
|
||||
$output = shell_exec($command);
|
||||
echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
|
||||
echo "<pre class=\"commandLine\"> " . htmlspecialchars($command, $flags=ENT_DISALLOWED | ENT_HTML5 | ENT_QUOTES, $encoding="UTF-8") . " </pre>\n<pre class=\"commandLine\"> " . htmlspecialchars($output, $flags=ENT_DISALLOWED | ENT_HTML5 | ENT_QUOTES, $encoding="UTF-8") . " </pre>\n<hr />";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue