Fix plugin admin links not working, protect against potential apostrophes in plugin name

This commit is contained in:
Ryan Blenis 2019-12-03 20:50:09 -05:00
parent d5eda27741
commit 3ae2951e30

View File

@ -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;
}