# HG changeset patch # User souliane # Date 1433675825 -7200 # Node ID dfe4b0291daa7da96a7b88c9efb0212e63655129 # Parent fe03637fe5a63b1e2bc60534566ff86196d0a439 server_side: remove unwanted "target" property in the HTTP to HTTPS link + use "

" instead of "
" diff -r fe03637fe5a6 -r dfe4b0291daa src/server/server.py --- a/src/server/server.py Fri Jun 05 21:16:45 2015 +0200 +++ b/src/server/server.py Sun Jun 07 13:17:05 2015 +0200 @@ -850,15 +850,18 @@ """@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 unsecure 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_('
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} + 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:') + text += '

 

%(url)s' % {'url': url} else: text += D_('You should ask the administrator of %(url)s to turn on HTTPS.') - return text + + return text + "

 

" class SignalHandler(jsonrpc.JSONRPC):