Development

Changeset 4643

You must first sign up to be able to contribute.

Changeset 4643

Show
Ignore:
Timestamp:
07/17/07 13:32:56 (1 year ago)
Author:
fabien
Message:

fixed sfWebRequest isSecure() bug for certain server configurations (closes #1931)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/request/sfWebRequest.class.php

    r4597 r4643  
    787787 
    788788    return ( 
    789       (isset($pathArray['HTTPS']) && strtolower($pathArray['HTTPS']) == 'on'
     789      (isset($pathArray['HTTPS']) && (strtolower($pathArray['HTTPS']) == 'on' || strtolower($pathArray['HTTPS']) == 1)
    790790      || 
    791791      (isset($pathArray['HTTP_X_FORWARDED_PROTO']) && strtolower($pathArray['HTTP_X_FORWARDED_PROTO']) == 'https')