Development

#600 ([PATCH] getURI() does not take into account SSL requests)

You must first sign up to be able to contribute.

Ticket #600 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

[PATCH] getURI() does not take into account SSL requests

Reported by: Ian <ian.ricketson@symfony-project.com> Assigned to:
Priority: minor Milestone: 0.6.3
Component: Version: 0.7.X
Keywords: ssl getURI https Cc:
Qualification:

Description

The following patch should be applied to check if the request is secure or not and then update the retval accordingly.

in sfWebRequest.class.php

  public function getUri()
  {
    $pathArray = $this->getPathInfoArray();
    $protocol = ($this->isSecure()) ? 'https' : 'http';
    
    return $protocol . '://'.$pathArray['HTTP_HOST'].$pathArray['REQUEST_URI'];
  }

Change History

06/09/06 15:41:26 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

r 1412