mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 20:27:52 +08:00
@@ -13,7 +13,7 @@ module.exports = async (ctx) => {
|
||||
sort = '';
|
||||
}
|
||||
|
||||
const suffix = 'search?o='.concat(order, '&q=', query, '&s=', sort, '&type=Repositories');
|
||||
const suffix = 'search?o='.concat(order, '&q=', encodeURIComponent(query), '&s=', sort, '&type=Repositories');
|
||||
const link = url.resolve(host, suffix);
|
||||
const response = await axios.get(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
Reference in New Issue
Block a user