diff options
Diffstat (limited to 'src/webview.cpp')
-rw-r--r-- | src/webview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webview.cpp b/src/webview.cpp index 4fb8511..7646324 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -41,7 +41,7 @@ WebView::WebView(QWidget* parent) _firstLoad(false) { auto p = new UaWebPage; - if (!Settings::allowedShibbolethDomains().trimmed().isEmpty()) { + if (!Global::getCombinedIdpWhitelist().trimmed().isEmpty()) { QObject::connect(p, &UaWebPage::frameCreated, [this](QWebFrame *frame) { QObject::connect(frame, &QWebFrame::javaScriptWindowObjectCleared, [this, frame]() { this->jsInjector(frame); @@ -72,8 +72,8 @@ WebView::WebView(QWidget* parent) void WebView::jsInjector(QWebFrame *frame) { - QString str = Settings::allowedShibbolethDomains().replace( - QRegularExpression("[^\\w. -]", QRegularExpression::UseUnicodePropertiesOption), + QString str = Global::getCombinedIdpWhitelist().replace( + QRegularExpression("[^\\w. /:-]", QRegularExpression::UseUnicodePropertiesOption), QStringLiteral("")); frame->evaluateJavaScript(QStringLiteral("var slxIdpFilter ='") + str + QStringLiteral("'")); } |