From 5b92a6fb476a61be333539e21519862fff90d9c9 Mon Sep 17 00:00:00 2001 From: tgly307 Date: Mon, 14 Jan 2019 14:53:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=BC=80=E6=BA=90=E4=B8=AD?= =?UTF-8?q?=E5=9B=BD=E8=B7=AF=E7=94=B1=20(#1395)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/oschina/news.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/oschina/news.js b/lib/routes/oschina/news.js index 1ad78883a..9c133a960 100644 --- a/lib/routes/oschina/news.js +++ b/lib/routes/oschina/news.js @@ -23,7 +23,7 @@ module.exports = async (ctx) => { const item = { title: each.find('a', 'h3').attr('title'), description: each.find('p', '.description').text(), - link: originalUrl, + link: encodeURI(originalUrl), }; if (/^https:\/\/www.oschina.net\/news\/.*$/.test(originalUrl)) { const key = 'oschina' + item.link;