fixed: the way we check whether we need make the redirect from SSL to non SSL (or vice versa)

beforehand we didn't take into accout default winix functions



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@894 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-09-24 20:31:01 +00:00
parent eaa97995d2
commit 7f48d1eb2e
3 changed files with 32 additions and 93 deletions

View File

@@ -132,8 +132,7 @@ bool ssl = false;
{
if( !config->use_ssl_only_for_logged_users ||
cur->session->puser ||
cur->request->function == &functions->fun_login ||
cur->request->function == &functions->fun_adduser)
(cur->request->function && cur->request->function->need_ssl) )
{
str += config->url_ssl_proto;
ssl = true;