mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03:00
Fix plugin admin links not working, protect against potential apostrophes in plugin name
This commit is contained in:
parent
d5eda27741
commit
3ae2951e30
@ -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 New Issue
Block a user