mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-10 16:40:46 +08:00
fix(weixin): trust international WeChat hosts
This commit is contained in:
parent
50d55090b9
commit
dc66366ac0
6 changed files with 14 additions and 5 deletions
|
|
@ -240,7 +240,8 @@ export function extractWeixinFiles(message, { fetchImpl = fetch } = {}) {
|
|||
|
||||
function isWeixinHost(hostname) {
|
||||
const normalized = hostname.toLowerCase().replace(/\.$/, '');
|
||||
return normalized === 'weixin.qq.com' || normalized.endsWith('.weixin.qq.com');
|
||||
return normalized === 'weixin.qq.com' || normalized.endsWith('.weixin.qq.com')
|
||||
|| normalized === 'wechat.com' || normalized.endsWith('.wechat.com');
|
||||
}
|
||||
|
||||
export function normalizeWeixinApiBaseUrl(value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue