mirror of
https://github.com/wassname/talk.git
synced 2026-10-03 13:02:47 +08:00
by hostname
This commit is contained in:
1 parent
21644bda8a
commit
a8c361e2f7
1 file changed
+1
-1
+1
-1
@@ -568,7 +568,7 @@ module.exports = class UsersService {
|
||||
}
|
||||
let redirectDomain;
|
||||
try {
|
||||
redirectDomain = url.parse(loc).host;
|
||||
redirectDomain = url.parse(loc).hostname;
|
||||
} catch (e) {
|
||||
return Promise.reject('redirect location is invalid');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user