mirror of
https://github.com/pi-hole/web.git
synced 2026-04-19 08:19:59 +01:00
Escape only where we are displaying
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -36,11 +36,6 @@ function processGroupResult(data, type, done, notDone) {
|
||||
// Loop over errors and display them
|
||||
data.processed.errors.forEach(function (error) {
|
||||
console.log(error); // eslint-disable-line no-console
|
||||
utils.showAlert(
|
||||
"error",
|
||||
"",
|
||||
`Error while ${notDone} ${type} ${utils.escapeHtml(error.item)}`,
|
||||
error.error
|
||||
);
|
||||
utils.showAlert("error", "", `Error while ${notDone} ${type} ${error.item}`, error.error);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user