mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-27 06:33:15 -05:00
Fix plugin admin links not working, protect against potential apostrophes in plugin name
This commit is contained in:
parent
0d662950a6
commit
dd530d6957
@ -9539,7 +9539,7 @@
|
|||||||
installedPluginList.forEach(function(p){
|
installedPluginList.forEach(function(p){
|
||||||
var cant_action = [];
|
var cant_action = [];
|
||||||
if (p.hasAdminPanel == true && p.status) {
|
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 {
|
} else {
|
||||||
p.nameHtml = p.name;
|
p.nameHtml = p.name;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user