comparison src/server/server.py @ 841:4a01be961fd2

server: removed unused %(url)s for formatting HTTP warning message
author Goffi <goffi@goffi.org>
date Wed, 13 Jan 2016 17:14:04 +0100
parents 027139763511
children fd438e51bda8
comparison
equal deleted inserted replaced
840:73cc4658f431 841:4a01be961fd2
1003 url = "https://%s" % self.request.URLPath().netloc.replace(':%s' % self.sat_host.options['port'], new_port) 1003 url = "https://%s" % self.request.URLPath().netloc.replace(':%s' % self.sat_host.options['port'], new_port)
1004 text += D_('Please read our %(faq_prefix)ssecurity notice%(faq_suffix)s regarding HTTPS') % {'faq_prefix': '<a href="http://salut-a-toi.org/faq.html#https" target="#">', 'faq_suffix': '</a>'} 1004 text += D_('Please read our %(faq_prefix)ssecurity notice%(faq_suffix)s regarding HTTPS') % {'faq_prefix': '<a href="http://salut-a-toi.org/faq.html#https" target="#">', 'faq_suffix': '</a>'}
1005 text += "</p><p>" + D_('and use the secure version of this website:') 1005 text += "</p><p>" + D_('and use the secure version of this website:')
1006 text += '</p><p>&nbsp;</p><p align="center"><a href="%(url)s">%(url)s</a>' % {'url': url} 1006 text += '</p><p>&nbsp;</p><p align="center"><a href="%(url)s">%(url)s</a>' % {'url': url}
1007 else: 1007 else:
1008 text += D_('You should ask the administrator of %(url)s to turn on HTTPS.') 1008 text += D_('You should ask your administrator to turn on HTTPS.')
1009 1009
1010 return text + "</p><p>&nbsp;</p>" 1010 return text + "</p><p>&nbsp;</p>"
1011 1011
1012 1012
1013 class SignalHandler(jsonrpc.JSONRPC): 1013 class SignalHandler(jsonrpc.JSONRPC):