...
|
...
|
@@ -13,7 +13,7 @@ const url = require('url'); |
|
|
exports.refererLimit = (referer, blacklist) => { // eslint-disable-line
|
|
|
let result = decodeURIComponent(referer || '/home');
|
|
|
|
|
|
let urlObj = url.parse(referer, false, true);
|
|
|
let urlObj = url.parse(result, false, true);
|
|
|
|
|
|
|
|
|
if (urlObj.hostname && !/(?:yohobuy\.com$)|(?:yoho\.cn$)/.test(urlObj.hostname)) {
|
...
|
...
|
|