mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
BUGFIX #24: Invalid favourites loaded from localStorage are now escaped when reported to the user.
This commit is contained in:
parent
8882805830
commit
8b0112229e
5 changed files with 10 additions and 10 deletions
|
@ -279,8 +279,8 @@ HTMLApp.prototype.valid_favourites = function(favourites) {
|
|||
if (this.operations.hasOwnProperty(favourites[i])) {
|
||||
valid_favs.push(favourites[i]);
|
||||
} else {
|
||||
this.alert("The operation \"" + favourites[i] + "\" is no longer " +
|
||||
"available. It has been removed from your favourites.", "info");
|
||||
this.alert("The operation \"" + Utils.escape_html(favourites[i]) +
|
||||
"\" is no longer available. It has been removed from your favourites.", "info");
|
||||
}
|
||||
}
|
||||
return valid_favs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue