Skip to content
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

[Filesystem] Handle paths on different drives #36497

Merged
merged 1 commit into from May 4, 2020

Conversation

crishoj
Copy link
Contributor

@crishoj crishoj commented Apr 19, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
License MIT

makePathRelative strips and ignores the drive letters given Windows paths on different drives, resulting in a relative path which does not resolve to the desired target.

This PR makes makePathRelative notice paths on different drives, and return the full (absolute) target path in case instead.

@nicolas-grekas
Copy link
Member

Can you rebase+retarget the PR for branch 3.4 please? It looks like the bug is there also (and we'll merge 3.4 up to master eventually so 5.0 will get the fix too.)

@crishoj
Copy link
Contributor Author

crishoj commented Apr 22, 2020

Rebased and retargeted to 3.4.

@nicolas-grekas
Copy link
Member

Thank you @crishoj.

@nicolas-grekas nicolas-grekas merged commit bd952b9 into symfony:3.4 May 4, 2020
@fabpot fabpot mentioned this pull request May 31, 2020
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.

None yet

4 participants