Changeset 2343

Show
Ignore:
Timestamp:
06/24/09 00:26:02 (9 months ago)
Author:
lmajano
Message:

isSSL request

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/system/beans/RequestContext.cfc

    r2288 r2343  
    513513        </cffunction> 
    514514         
     515        <cffunction name="isSSL" access="public" returntype="boolean" hint="Returns boolean result whether current request is in ssl or not" output="false"> 
     516            <cfscript> 
     517                        var isSSLRequest = false; 
     518                        if (isBoolean(cgi.server_port_secure) && cgi.server_port_secure) { 
     519                                isSSLRequest = true; 
     520                        } 
     521                        return isSSLRequest; 
     522                </cfscript> 
     523        </cffunction> 
     524         
    515525        <cffunction name="isViewDispatched" access="public" returntype="boolean" hint="Determine if we need to dispatch a view" output="false" > 
    516526                <cfreturn instance.isViewDispatched>