Skip to content

Conversation

@LukasReschke
Copy link
Member

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#26058

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#26058

Signed-off-by: Lukas Reschke <[email protected]>
@LukasReschke LukasReschke added 3. to review Waiting for reviews downstream labels Sep 26, 2016
@LukasReschke LukasReschke added this to the Nextcloud 11.0 milestone Sep 26, 2016
@mention-bot
Copy link

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

@nickvergessen
Copy link
Member

tests pass, so seems to be good?

👍

@MorrisJobke
Copy link
Member

👍

@MorrisJobke MorrisJobke merged commit 71fc930 into master Sep 26, 2016
@MorrisJobke MorrisJobke deleted the fix-openbasedir-realpath-warning branch September 26, 2016 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants