Merge remote-tracking branch 'origin/hotfix/redirectSec' into gray
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -13,7 +13,7 @@ const url = require('url'); | @@ -13,7 +13,7 @@ const url = require('url'); | ||
13 | exports.refererLimit = (referer, blacklist) => { // eslint-disable-line | 13 | exports.refererLimit = (referer, blacklist) => { // eslint-disable-line |
14 | let result = decodeURIComponent(referer || '/home'); | 14 | let result = decodeURIComponent(referer || '/home'); |
15 | 15 | ||
16 | - let urlObj = url.parse(referer, false, true); | 16 | + let urlObj = url.parse(result, false, true); |
17 | 17 | ||
18 | 18 | ||
19 | if (urlObj.hostname && !/(?:yohobuy\.com$)|(?:yoho\.cn$)/.test(urlObj.hostname)) { | 19 | if (urlObj.hostname && !/(?:yohobuy\.com$)|(?:yoho\.cn$)/.test(urlObj.hostname)) { |
-
Please register or login to post a comment