merge: retain dev security fixes for the 0.3.0 release

This commit is contained in:
illusia committed 2026-11-03 20:13:15 +08:00
commit 047a40ac4b
31 files changed
+449 -84

No files matched your search

@@ -184,5 +184,5 @@ export function useWebClientServerHistory({
}
function serverKey(address: string): string {
return address.trim().toLocaleLowerCase();
return address.trim().toLowerCase();
}
+2 -2
View File
@@ -90,12 +90,12 @@ export function mergeQuickServers(
}
function serverKey(address: string): string {
return address.trim().toLocaleLowerCase();
return address.trim().toLowerCase();
}
function comparableServerKey(address: string): string {
const target = splitTeamSpeakTarget(address);
const host = target.address.trim().toLocaleLowerCase();
const host = target.address.trim().toLowerCase();
const port = target.port.trim() || "9987";
return host ? `${host}:${port}` : "";
}
+1 -1
View File
@@ -1467,7 +1467,7 @@ const favoriteSwitchLabel = computed(() => quickServers.value.find((server) =>
)?.label ?? currentServerTarget());
function isQuickServerTarget(server: QuickServer): boolean {
return server.id === currentServerTarget().toLocaleLowerCase()
return server.id === currentServerTarget().toLowerCase()
|| quickServerTargetsEqual(server.address, currentServerTarget());
}