From 82a00f4d1e94f9839ae6b2a470305ffe5650b534 Mon Sep 17 00:00:00 2001 From: Cutls Date: Tue, 16 Apr 2019 01:29:44 +0900 Subject: [PATCH] security --- app/about.html | 17 ++++++++++++----- app/js/login/manager.js | 22 ++++++++++++++++++++++ app/js/userdata/showOnTL.js | 3 +-- app/package.json | 2 +- app/view/make/setting.sample.html | 2 +- 5 files changed, 37 insertions(+), 9 deletions(-) diff --git a/app/about.html b/app/about.html index 63f25012..ca455003 100644 --- a/app/about.html +++ b/app/about.html @@ -76,7 +76,7 @@ a,button{
TheDesk
-
External version
+
Display version
Internal version
@@ -87,13 +87,17 @@ a,button{
Node.js
-
Copyright © TheDesk 2018 All rights reserved.
Web site
+
Copyright © Cutls P 2018 All rights reserved.
+ Thanks:toneji/popn_ja/kPherox and all users + ❤️ +
Web site
- \ No newline at end of file +$(document).on('click', 'a', e => { + var url = $(e.target).attr('href'); + shell.openExternal(url); + return false; +}); + \ No newline at end of file diff --git a/app/js/login/manager.js b/app/js/login/manager.js index 884b50eb..efaf09b2 100644 --- a/app/js/login/manager.js +++ b/app/js/login/manager.js @@ -364,6 +364,28 @@ function misskeyLogin(url) { "reaction-write", "vote-read", "vote-write" + /* + "read:account", + "write:account", + "read:drive", + "write:drive", + "read:blocks", + "write:blocks", + "read:favorites", + "write:favorites", + "read:following", + "write:following", + "read:messaging", + "write:messaging", + "read:mutes", + "write:mutes", + "write:notes", + "read:notifications", + "write:notifications", + "read:reactions", + "write:reactions", + "write:votes" + */ ] })); httpreq.onreadystatechange = function() { diff --git a/app/js/userdata/showOnTL.js b/app/js/userdata/showOnTL.js index b201b38b..8c72c2e3 100644 --- a/app/js/userdata/showOnTL.js +++ b/app/js/userdata/showOnTL.js @@ -157,8 +157,7 @@ function udg(user, acct_id) { var when=""; var color="inherit" } - fval=twemoji.parse(fval); - note=note+''+fname+''+fval+''; + note=note+''+twemoji.parse(escapeHTML(fname))+''+twemoji.parse(fval)+''; } note=note+'' $("#his-des").html(twemoji.parse(note)); diff --git a/app/package.json b/app/package.json index 55cbaef9..202de6eb 100644 --- a/app/package.json +++ b/app/package.json @@ -35,7 +35,7 @@ }, { "name": "kPherox", - "url": "https://www.kr-kp.com/", + "url": "https://pawoo.net/@kPherox", "email": "admin@mail.kr-kp.com" } ], diff --git a/app/view/make/setting.sample.html b/app/view/make/setting.sample.html index bf804391..7039f7ab 100644 --- a/app/view/make/setting.sample.html +++ b/app/view/make/setting.sample.html @@ -425,7 +425,7 @@ @@checkup@@
OSS License@@ossJP@@
- Copyright © TheDesk 2018 All Rights Reserved. + Copyright © Cutls P 2018 All Rights Reserved. Under GNU General Public License v3.0 and Terms of Use/Privacy Policy