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:
Tomasz Sowa 2012-09-24 18:59:08 +00:00
parent 14f997b844
commit eaa97995d2
1 changed files with 2 additions and 2 deletions

View File

@ -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;