mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-12 11:56:20 -05:00
fix: use correct redirect config name
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
Some checks failed
Build and Publish Docker Image / build-publish (push) Has been cancelled
This commit is contained in:
@@ -6,7 +6,7 @@ function isValidRedirect(redirect) {
|
||||
if (redirect.startsWith('http://') || redirect.startsWith('https://')) {
|
||||
try {
|
||||
const url = new URL(redirect);
|
||||
return config.http.valid_redirection_domains.some(domain => url.hostname.endsWith(domain));
|
||||
return config.http.allowed_redirection_suffixes.some(domain => url.hostname.endsWith(domain));
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user