# HG changeset patch # User souliane # Date 1433531805 -7200 # Node ID fe03637fe5a63b1e2bc60534566ff86196d0a439 # Parent 531eacb82e9f374050a4fa0888c89e049b99ad37 server_side: add a link to the FAQ in the HTTP/HTTPS warning dialog diff -r 531eacb82e9f -r fe03637fe5a6 src/server/server.py --- a/src/server/server.py Thu Jun 04 12:03:45 2015 +0200 +++ b/src/server/server.py Fri Jun 05 21:16:45 2015 +0200 @@ -850,11 +850,14 @@ """@return: a security warning message, or None if the connection is secure""" if self.request.URLPath().scheme == 'https' or not self.sat_host.security_warning: return None - text = D_("You are about to connect to an unsecured service.") + text = D_("You are about to connect to an unsecure service.") if self.sat_host.connection_type == 'both': new_port = (':%s' % self.sat_host.port_https_ext) if self.sat_host.port_https_ext != HTTPS_PORT else '' url = "https://%s" % self.request.URLPath().netloc.replace(':%s' % self.sat_host.port, new_port) - text += D_('
Secure version of this website: %(url)s') % {'url': url} + text += D_('
Please read our %(faq_prefix)ssecurity notice%(faq_suffix)s regarding HTTPS') % {'faq_prefix': '', 'faq_suffix': ''} + text += D_('
and use the secure version of this website:
%(url)s') % {'url': url} + else: + text += D_('You should ask the administrator of %(url)s to turn on HTTPS.') return text