Development

Changeset 1412

You must first sign up to be able to contribute.

Changeset 1412

Show
Ignore:
Timestamp:
06/09/06 15:41:17 (2 years ago)
Author:
fabien
Message:

fixed getURI() does not take into account SSL requests (closes #600 - patch from Ian Ricketson)

Files:

Legend:

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

    r1401 r1412  
    325325  { 
    326326    $pathArray = $this->getPathInfoArray(); 
    327  
    328     return 'http://'.$pathArray['HTTP_HOST'].$pathArray['REQUEST_URI']; 
     327    $protocol  = $this->isSecure() ? 'https' : 'http'; 
     328 
     329    return $protocol.'://'.$pathArray['HTTP_HOST'].$pathArray['REQUEST_URI']; 
    329330  } 
    330331