Escape <> in log messages to prevent html shenanigans. Fixes #3596
parent
1546fabfc8
commit
e1028c1d7f
|
@ -50,8 +50,8 @@ function ajaxRequest(params) {
|
|||
function processRows(rows) {
|
||||
$j.each(rows, function(ndx, row) {
|
||||
try {
|
||||
row.Message = decodeURIComponent(row.Message);
|
||||
} catch(e) {
|
||||
row.Message = decodeURIComponent(row.Message).replace(/</g, "<").replace(/>/g, ">");
|
||||
} catch (e) {
|
||||
// ignore errors
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue