From cc74ae97b9f91b38fecb1c24600c3eb7e4717b4d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 25 Sep 2025 15:20:34 +0200 Subject: Refactor representation of IdP lists in memory --- src/webview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index d9a689d..e01fa74 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -282,7 +282,7 @@ void WebView::installJsInjectionScript() const auto& map = Global::getCombinedIdpWhitelist(); QSet idpList; for (auto it = map.constBegin(); it != map.constEnd(); ++it) { - for (const QString &s : it.value().toString().split(' ')) { + for (const QString &s : it.value()) { idpList.insert(s); } } @@ -380,11 +380,11 @@ void WebView::evaluateAuthDom() for (auto it = idpMap.constBegin(); it != idpMap.constEnd(); ++it) { if (it.key().isEmpty()) { // An "anything goes" list, no restrictions - if (it.value().toStringList().contains(idp)) { + if (it.value().contains(idp)) { ok = true; break; } - } else if (it.value().toStringList().contains(idp)) { + } else if (it.value().contains(idp)) { // IdP in list, so if the entitlements match up, allow ok = true; // Break up key into individual entitlements, make sure the user has them all -- cgit v1.2.3-55-g7522