From 44b0c6c8fd36d0b35ba22994e34f1dfaf0dd3e66 Mon Sep 17 00:00:00 2001 From: cutls Date: Sun, 26 Jan 2020 23:55:07 +0900 Subject: [PATCH] Fix: src encoding URL for resolve --- app/js/tl/src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/tl/src.js b/app/js/tl/src.js index cb4d5334..8105da7a 100644 --- a/app/js/tl/src.js +++ b/app/js/tl/src.js @@ -36,7 +36,7 @@ function src(mode, offset) { var user = $('#his-data').attr('user-id') } if (!mode) { - var start = 'https://' + domain + '/api/v2/search?resolve=true&q=' + q + add + var start = 'https://' + domain + '/api/v2/search?resolve=true&q=' + encodeURIComponent(q) + add } else { var start = 'https://' + domain + '/api/v1/search?q=' + q }