mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-09-26 22:28:21 +00:00
more sound checks
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -469,7 +469,7 @@ export async function getapiurls(str: string): Promise<
|
||||
};
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if (!str.match(/^https?:\/\//gm)) {
|
||||
str = "https://" + str;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user