Development

Changeset 4642

You must first sign up to be able to contribute.

Changeset 4642

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

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

Files:

Legend:

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

    r3250 r4642  
    796796 
    797797    return ( 
    798       (isset($pathArray['HTTPS']) && strtolower($pathArray['HTTPS']) == 'on'
     798      (isset($pathArray['HTTPS']) && (strtolower($pathArray['HTTPS']) == 'on' || strtolower($pathArray['HTTPS']) == 1)
    799799      || 
    800800      (isset($pathArray['HTTP_X_FORWARDED_PROTO']) && strtolower($pathArray['HTTP_X_FORWARDED_PROTO']) == 'https')