added HTML code escaping ... ’cause issues

master
BodgeMaster 2020-03-05 10:45:08 +01:00
parent da055d59c6
commit a4f45ac04b
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ $git_commands = get_command_list("commands_git.conf");
$command = $command . " 2>&1"; $command = $command . " 2>&1";
} }
$output = shell_exec($command); $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 />";
} }
} }