# HG changeset patch # User Julien Cristau # Date 1359019729 -3600 # Node ID e362054d9701587fced7a99b30a86647c4b09c55 # Parent 5b3e17a63fad9cb67b2fba2b81855731eb00b954 [login] don't redirect to http url if we allow anonymous on https Closes #2583913 diff -r 5b3e17a63fad -r e362054d9701 web/views/basetemplates.py --- a/web/views/basetemplates.py Mon Feb 25 11:34:58 2013 +0100 +++ b/web/views/basetemplates.py Thu Jan 24 10:28:49 2013 +0100 @@ -498,7 +498,7 @@ if config['auth-mode'] != 'http': self.login_form(id) # Cookie authentication w(u'') - if self._cw.https and config.anonymous_user()[0]: + if self._cw.https and config.anonymous_user()[0] and config['https-deny-anonymous']: path = xml_escape(config['base-url'] + self._cw.relative_path()) w(u'
%s
\n' % (path, self._cw._('No account? Try public access at %s') % path))