Development

#2200: webrequest_issecure.patch

You must first sign up to be able to contribute.

Ticket #2200: webrequest_issecure.patch

File webrequest_issecure.patch, 0.7 kB (added by eckhofer, 1 year ago)

patch against trunk. this basically just deletes the line with HTTP_X_FORWARDED_PROTO

  • lib/request/sfWebRequest.class.php

    old new  
    690690    $pathArray = $this->getPathInfoArray(); 
    691691 
    692692    return ( 
    693       (isset($pathArray['HTTPS']) && (strtolower($pathArray['HTTPS']) == 'on' || strtolower($pathArray['HTTPS']) == 1)) 
    694       || 
    695       (isset($pathArray['HTTP_X_FORWARDED_PROTO']) && strtolower($pathArray['HTTP_X_FORWARDED_PROTO']) == 'https') 
     693      isset($pathArray['HTTPS']) && (strtolower($pathArray['HTTPS']) == 'on' || strtolower($pathArray['HTTPS']) == 1) 
    696694    ); 
    697695  } 
    698696