"Allowing" <br> tag when output escaping content in the command module output.
git-svn-id: https://beef.googlecode.com/svn/trunk@1391 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -260,8 +260,8 @@ function genExisingExploitPanel(panel, command_id, zombie, sb) {
|
||||
for(index in record.data.data) {
|
||||
result = record.data.data[index];
|
||||
index = index.toString().replace('_', ' ');
|
||||
|
||||
html += String.format('<b>{0}</b>: {1}<br>', index, $jEncoder.encoder.encodeForHTML(result));
|
||||
//output escape everything, but allow the <br> tag for better rendering.
|
||||
html += String.format('<b>{0}</b>: {1}<br>', index, $jEncoder.encoder.encodeForHTML(result).replace(/<br>/g,'<br>'));
|
||||
}
|
||||
|
||||
html += '</p>';
|
||||
|
||||
Reference in New Issue
Block a user