From 9bb8ec0b660394c88d2367075baa47ee0c021b2c Mon Sep 17 00:00:00 2001 From: Cutls Date: Fri, 19 Apr 2019 23:02:30 +0900 Subject: [PATCH] some security update --- app/js/tl/poll.js | 2 +- app/view/en/index.html | 2 +- app/view/ja/index.html | 2 +- app/view/ps/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/js/tl/poll.js b/app/js/tl/poll.js index 394579d2..8803a10c 100644 --- a/app/js/tl/poll.js +++ b/app/js/tl/poll.js @@ -108,7 +108,7 @@ function voteMastodonrefresh(acct_id,id){ if(!json.voted){ votesel='voteSelMastodon(\''+acct_id+'\',\''+json.id+'\','+keyc+','+json.multiple+')'; } - poll=poll+'
'+choice.title+'('+choice.votes_count+')
'; + poll=poll+'
'+escapeHTML(choice.title)+'('+choice.votes_count+')
'; }); poll=poll+myvote+'' + diff --git a/app/view/en/index.html b/app/view/en/index.html index a07505f2..d5e8dceb 100644 --- a/app/view/en/index.html +++ b/app/view/en/index.html @@ -32,7 +32,7 @@