From 5d0bf2e80bc678714d32235a364d7a9ed87fa702 Mon Sep 17 00:00:00 2001 From: shortcutme <tamas@zeronet.io> Date: Mon, 26 Nov 2018 00:16:19 +0100 Subject: [PATCH] Replace html tags separately in sidebar html as it would be escaped otherwise --- plugins/Sidebar/SidebarPlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index 6780b527..cb5e1ef7 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -142,7 +142,7 @@ class UiWebsocketPlugin(object): <li class='color-black'><span>{_[Total]}:</span><b>{peers_total}</b></li> </ul> </li> - """)) + """.replace("{local_html}", local_html))) def sidebarRenderTransferStats(self, body, site): recv = float(site.settings.get("bytes_recv", 0)) / 1024 / 1024 @@ -491,7 +491,7 @@ class UiWebsocketPlugin(object): body.append(_(u""" <li> <label>{_[Content publishing]} <small class='label-right'>{tag_privatekey}</small></label> - """)) + """.replace("{tag_privatekey}", tag_privatekey))) # Choose content you want to sign body.append(_(u"""