summaryrefslogtreecommitdiffstats
path: root/src/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp6
1 files changed, 3 insertions, 3 deletions
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<QString> 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