Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpFoundation] fixed the creation of sub-requests under some circumstancies (closes #6923, closes #6936) #6966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2013

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Feb 4, 2013

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #6923, #6936
License MIT
Doc PR n/a

This fixes the creation of a sub-request when the master request Request URI
is determined with specific server information.

…stancies (closes symfony#6923, closes symfony#6936)

This fixes the creation of a sub-request when the master request Request URI
is determined with specific server information.
fabpot added a commit that referenced this pull request Feb 7, 2013
This PR was merged into the 2.0 branch.

Commits
-------

ddf4678 [HttpFoundation] fixed the creation of sub-requests under some circumstancies (closes #6923, closes #6936)

Discussion
----------

[HttpFoundation] fixed the creation of sub-requests under some circumstancies (closes #6923, closes #6936)

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6923, #6936
| License       | MIT
| Doc PR        | n/a

This fixes the creation of a sub-request when the master request Request URI
is determined with specific server information.
@fabpot fabpot merged commit ddf4678 into symfony:2.0 Feb 7, 2013
} elseif ($this->headers->has('X_REWRITE_URL') && false !== stripos(PHP_OS, 'WIN')) {
// IIS with ISAPI_Rewrite
$requestUri = $this->headers->get('X_REWRITE_URL');
$this->headers->remove('X_REWRITE_URL');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the headers have both X_REWRITE_URL and X_ORIGINAL_URL? Then only one is removed and subrequest could use the wrong request uri again.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IFAIU, it should not happen as the header is different depending on the server configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants