Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈轩
2016-11-25 18:47:13 +0800
Commit
2735742ed227cc61da73b1c819eba3d6691eb7d8
1 parent
e2819ad2
排除//
www.baidu.com
这个情况
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/passport/controllers/login.js
apps/passport/controllers/login.js
View file @
2735742
...
...
@@ -67,7 +67,7 @@ const common = {
refer
=
decodeURI
(
refer
);
let
urlObj
=
url
.
parse
(
refer
);
let
urlObj
=
url
.
parse
(
refer
,
false
,
true
);
if
(
urlObj
.
hostname
&&
!
/yohobuy
\.
com$/
.
test
(
urlObj
.
hostname
))
{
refer
=
'/'
;
...
...
Please
register
or
login
to post a comment