Sanitize html in panel links

This commit is contained in:
Dominik Prokop
2019-12-17 11:27:36 +01:00
parent 4f1fffb948
commit c3d2afd83e
+2 -2
View File
@@ -276,7 +276,7 @@ export class PanelCtrl {
let html = '<div class="markdown-html panel-info-content">';
const md = renderMarkdown(interpolatedMarkdown);
html += config.disableSanitizeHtml ? md : sanitize(md);
html += md;
if (panel.links && panel.links.length > 0) {
const interpolatedLinks = getPanelLinksSupplier(panel).getLinks();
@@ -297,7 +297,7 @@ export class PanelCtrl {
html += '</div>';
return html;
return config.disableSanitizeHtml ? html : sanitize(html);
}
// overriden from react