correct overly strict blockLocation validation

This commit is contained in:
ansuz 2022-08-12 13:14:18 +05:30
parent 31f61c7f1d
commit f47f0db136

View File

@ -1210,8 +1210,7 @@ define([
};
var isValidBlockURL = function (url) {
if (!url) { return; }
return url.origin === ApiConfig.httpUnsafeOrigin &&
/^\/block\/.*/.test(url.pathname) && getKey().length === 44;
return /* url.origin === ApiConfig.httpUnsafeOrigin && */ /^\/block\/.*/.test(url.pathname) && getKey().length === 44;
};
if (isValidBlockURL(url)) {
state.valid = true;