fixed: we should check cur.request->function is not null (in5D app when testing ssl/nossl redirect)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@893 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
14f997b844
commit
eaa97995d2
|
@ -238,7 +238,7 @@ bool App::ShouldNotUseSSL()
|
|||
return true;
|
||||
}
|
||||
|
||||
if( cur.request->function->need_ssl )
|
||||
if( cur.request->function && cur.request->function->need_ssl )
|
||||
{
|
||||
// this winix function require SSL, so we don't make a redirect
|
||||
return false;
|
||||
|
@ -273,7 +273,7 @@ bool App::ShouldUseSSL()
|
|||
return false;
|
||||
}
|
||||
|
||||
if( cur.request->function->need_ssl )
|
||||
if( cur.request->function && cur.request->function->need_ssl )
|
||||
{
|
||||
// this functions require SSL, do the redirect
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue