]> git.ipfire.org Git - ipfire.org.git/commitdiff
talk: Show the padlock for sips:// URLs as well
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Mar 2015 13:14:35 +0000 (14:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Mar 2015 13:14:35 +0000 (14:14 +0100)
webapp/backend/talk.py

index b1c58bbd681cad7493ac15170944e0396212f9a0..70a4172437f3d5bbbaec69a4442c06be55e67de0 100644 (file)
@@ -55,7 +55,8 @@ class Talk(Object):
                result = []
                for row in res:
                        # Check if TLS is used
-                       row.tls_enabled = "transport=TLS" in row.location
+                       row.tls_enabled = row.location.startswith("sip/sips:") or \
+                               "transport=TLS" in row.location
 
                        # Strip a leading sip/
                        if row.location.startswith("sip/"):