diff --git a/gp_saml_gui.py b/gp_saml_gui.py index 9aa2dca..f3ad169 100755 --- a/gp_saml_gui.py +++ b/gp_saml_gui.py @@ -140,7 +140,8 @@ def on_load_changed(self, webview, event): if self.verbose: print('[PAGE ] Finished loading page %s' % uri, file=stderr) - origin = urlunsplit(urlparse(uri)[:2] + ('',)*3) + urip = urlparse(uri) + origin = '%s %s' % ('🔒' if urip.scheme == 'https' else '🔴', urip.netloc) self.window.set_title("SAML Login (%s)" % origin) # if no response or no headers (for e.g. about:blank), skip checking this