fix: apply boundary-safe hostname matching to remaining platform and blacklist checks

This commit is contained in:
Koala
2026-06-02 08:02:47 +02:00
parent c4fc3ab53b
commit a06cca8b9d
3 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -813,7 +813,7 @@ function updateRoomList(rooms) {
function checkInviteLink() {
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
const tab = tabs[0];
if (tab && tab.url && tab.url.includes(OFFICIAL_LANDING_PAGE_URL) && tab.url.includes('#join:')) {
if (tab && tab.url && tab.url.startsWith(OFFICIAL_LANDING_PAGE_URL + '/') && tab.url.includes('#join:')) {
try {
const rawHash = tab.url.split('#join:')[1];
if (!rawHash) return;