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

[stable10] Only use realpath for real directories (#26060) #1533

Merged
merged 1 commit into from
Sep 28, 2016

Conversation

MorrisJobke
Copy link
Member

@MorrisJobke MorrisJobke commented Sep 26, 2016

In some cross-local-storage use cases, the Local storage is
instantiated with "/" as data directory. In such cases, calling
realpath() would cause PHP warnings when open_basedir is set.

This fix bypasses the realpath() call when dealing with a root storage.

Downstreaming of owncloud/core#26060

Signed-off-by: Lukas Reschke [email protected]

In some cross-local-storage use cases, the Local storage is
instantiated with "/" as data directory. In such cases, calling
realpath() would cause PHP warnings when open_basedir is set.

This fix bypasses the realpath() call when dealing with a root storage.

Downstreaming of owncloud/core#26060

Signed-off-by: Lukas Reschke <[email protected]>
@MorrisJobke MorrisJobke added bug 4. to release Ready to be released and/or waiting for tests to finish labels Sep 26, 2016
@MorrisJobke MorrisJobke added this to the Nextcloud 10.0.2 milestone Sep 26, 2016
@mention-bot
Copy link

@MorrisJobke, thanks for your PR! By analyzing the annotation information on this pull request, we identified @icewind1991, @nickvergessen and @pluijm to be potential reviewers

@MorrisJobke
Copy link
Member Author

👍

@nickvergessen
Copy link
Member

You reverted because of the release? Or any other reason?

@MorrisJobke
Copy link
Member Author

You reverted because of the release? Or any other reason?

Correct. This was scheduled for 10.0.2 and 10.0.1 is not yet released.

@nickvergessen
Copy link
Member

👍

@MorrisJobke
Copy link
Member Author

@MorrisJobke MorrisJobke merged commit 43aa114 into stable10 Sep 28, 2016
@MorrisJobke MorrisJobke deleted the stable10-redo-1517 branch September 28, 2016 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants