VBOX: Sanitize vboxmanage's output before writing it to the trace log.

This commit is contained in:
Rom Walton 2014-02-04 15:51:28 -05:00
parent cc73d1b08b
commit 0ed3f27db2
1 changed files with 2 additions and 2 deletions

View File

@ -2641,6 +2641,8 @@ int VBOX_VM::vbm_popen(string& command, string& output, const char* item, bool l
do {
retval = vbm_popen_raw(command, output, timeout);
sanitize_output(command);
sanitize_output(output);
if (log_trace) {
vbm_trace(command, output, retval);
@ -2695,8 +2697,6 @@ int VBOX_VM::vbm_popen(string& command, string& output, const char* item, bool l
// Add all relivent notes to the output string and log errors
//
if (retval && log_error) {
sanitize_output(output);
if (!retry_notes.empty()) {
output += "\nNotes:\n\n" + retry_notes;
}