mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-14 12:01:52 +00:00
Fix plugin admin links not working, protect against potential apostrophes in plugin name
This commit is contained in:
parent
d5eda27741
commit
3ae2951e30
1 changed files with 1 additions and 1 deletions
|
@ -9539,7 +9539,7 @@
|
|||
installedPluginList.forEach(function(p){
|
||||
var cant_action = [];
|
||||
if (p.hasAdminPanel == true && p.status) {
|
||||
p.nameHtml = '<a onclick="return goPlugin(' + p.shortName + ', ' + p.name + ');">' + p.name + '</a>';
|
||||
p.nameHtml = '<a onclick="return goPlugin(\'' + p.shortName + '\', \'' + p.name.replace(/'/g, "\\'") + '\');">' + p.name + '</a>';
|
||||
} else {
|
||||
p.nameHtml = p.name;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue