From d30069d796230c7a490697cde2c70f848dd27b54 Mon Sep 17 00:00:00 2001 From: Arinerron Date: Sat, 4 Aug 2018 21:16:42 -0700 Subject: [PATCH] Quick bug fix --- onionr/static-data/www/ui/dist/js/timeline.js | 3 +-- onionr/static-data/www/ui/src/js/timeline.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/onionr/static-data/www/ui/dist/js/timeline.js b/onionr/static-data/www/ui/dist/js/timeline.js index c09525e7..0dbd634a 100644 --- a/onionr/static-data/www/ui/dist/js/timeline.js +++ b/onionr/static-data/www/ui/dist/js/timeline.js @@ -1,4 +1,3 @@ - /* just for testing rn */ Block.getBlocks({'type' : 'onionr-post', 'signed' : true, 'reverse' : true}, function(data) { for(var i = 0; i < data.length; i++) { @@ -24,5 +23,5 @@ Block.getBlocks({'type' : 'onionr-post', 'signed' : true, 'reverse' : true}, fun }); function viewProfile(id, name) { - document.getElementById("onionr-profile-username").innerHTML = encodeHTML(decodeURIComponent(name)); + document.getElementById("onionr-profile-username").innerHTML = Sanitize.html(decodeURIComponent(name)); } diff --git a/onionr/static-data/www/ui/src/js/timeline.js b/onionr/static-data/www/ui/src/js/timeline.js index c09525e7..763fc7d0 100644 --- a/onionr/static-data/www/ui/src/js/timeline.js +++ b/onionr/static-data/www/ui/src/js/timeline.js @@ -24,5 +24,5 @@ Block.getBlocks({'type' : 'onionr-post', 'signed' : true, 'reverse' : true}, fun }); function viewProfile(id, name) { - document.getElementById("onionr-profile-username").innerHTML = encodeHTML(decodeURIComponent(name)); + document.getElementById("onionr-profile-username").innerHTML = Sanitize.html(decodeURIComponent(name)); }