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

Skip to content

WIP [HttpFoundation] fix detection of request uri, base url, base path, path info #7632

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

Closed
wants to merge 1 commit into from

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Apr 11, 2013

WIP
BC break: no
Tests pass: no
Fixes: #7329 (not yet)

I synchronized the code with the changes done upstream in ZF: https://github.com/zendframework/zf2/blob/master/library/Zend/Http/PhpEnvironment/Request.php

I also added tests from ZF and #7329.

I also rewrote the preparePathInfo slightly because there were some strange things.

…ath info

I synchronized the code with the changes done upstream in ZF: https://github.com/zendframework/zf2/blob/master/library/Zend/Http/PhpEnvironment/Request.php

I also added tests from ZF and symfony#7329.

I also rewrote the preparePathInfo slightly because there were some strange things.
$truncatedRequestUri = substr($requestUri, 0, $pos);
}

$basename = basename($baseUrl);
if (empty($basename) || !strpos(rawurldecode($truncatedRequestUri), $basename)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dont see why rawurldecode was done

Copy link
Contributor

Choose a reason for hiding this comment

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

@Tobion I did change it (adding the raw prefix) in here - I can't remember why, try to look at the tests.
More interesting might be the original commit where the decode was added.

@fabpot
Copy link
Member

fabpot commented Apr 20, 2013

What is the status of this PR @Tobion?

@fabpot
Copy link
Member

fabpot commented Sep 12, 2013

@Tobion Can you finish this one?

@Tobion
Copy link
Contributor Author

Tobion commented Sep 15, 2013

I try. Unfortunately I can't remember why I was stuck / why I didnt finish / what's left to do.
So I have to go through it again.

@Tobion
Copy link
Contributor Author

Tobion commented Sep 15, 2013

Ah I see. It's my comment above. I think there was some wrong code in ZF as well. And I didn't want to copy code that seems buggy to me. But I didn't have time to discuss this with the zend guys.

@fabpot
Copy link
Member

fabpot commented Oct 1, 2013

So, let's close it then.

@jakzal
Copy link
Contributor

jakzal commented Dec 23, 2013

@Tobion ?

@fabpot fabpot closed this Dec 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants