From da45638187b9c02609d014ca8bf69a2571a5768d Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Mon, 15 Dec 2025 15:18:17 -0600 Subject: [PATCH] more sound checks --- src/webpage/localuser.ts | 2 +- src/webpage/utils/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index 5259e99..5660921 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -614,7 +614,7 @@ class Localuser { break; } case 5: { - const breakappart = new URL(this.info.wellknown).origin.split("."); + const breakappart = new URL(this.info.wellknown).host.split("."); const url = "https://" + breakappart.at(-2) + "." + breakappart.at(-1); const newurls = await getapiurls(url); if (newurls) { diff --git a/src/webpage/utils/utils.ts b/src/webpage/utils/utils.ts index ec52821..a696f5e 100644 --- a/src/webpage/utils/utils.ts +++ b/src/webpage/utils/utils.ts @@ -469,7 +469,7 @@ export async function getapiurls(str: string): Promise< }; } } - } else { + } else if (!str.match(/^https?:\/\//gm)) { str = "https://" + str; } }