Philipp Hörist pushed to branch master at gajim / gajim


Commits:
107bd123 by lovetox at 2021-07-27T20:51:28+02:00
AccountWizard: Don’t try to validate websocket uris

- - - - -


1 changed file:

- gajim/gtk/account_wizard.py


Changes:

=====================================
gajim/gtk/account_wizard.py
=====================================
@@ -748,6 +748,11 @@ def _show_port_icon(self, show):
 
     def _validate_host(self):
         host = self._ui.custom_host_entry.get_text()
+        if host.startswith('ws://') or host.startswith('wss://'):
+            # We have no method for validating websocket URIs
+            self._show_host_icon(False)
+            return True
+
         try:
             validate_domainpart(host)
         except Exception:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/107bd123c076fc8fea3faf8d76147fa02da0b063

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/107bd123c076fc8fea3faf8d76147fa02da0b063
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to