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#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]>
@LukasReschke LukasReschke added 3. to review Waiting for reviews downstream labels Sep 26, 2016
@LukasReschke LukasReschke added this to the Nextcloud 10.0.2 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 nickvergessen changed the title Only use realpath for real directories (#26060) [stable10] Only use realpath for real directories (#26060) Sep 26, 2016
@nickvergessen
Copy link
Member

👍

1 similar comment
@MorrisJobke
Copy link
Member

👍

@MorrisJobke MorrisJobke merged commit ffaa251 into stable10 Sep 26, 2016
@MorrisJobke MorrisJobke deleted the stable9.1-fix-openbasedir-realpath-warning branch September 26, 2016 22:11
@MorrisJobke MorrisJobke restored the stable9.1-fix-openbasedir-realpath-warning branch September 26, 2016 22:12
@MorrisJobke MorrisJobke removed this from the Nextcloud 10.0.2 milestone Sep 26, 2016
@MorrisJobke MorrisJobke deleted the stable9.1-fix-openbasedir-realpath-warning branch September 26, 2016 22:13
@MorrisJobke MorrisJobke restored the stable9.1-fix-openbasedir-realpath-warning branch September 26, 2016 22:14
@MorrisJobke MorrisJobke deleted the stable9.1-fix-openbasedir-realpath-warning branch September 26, 2016 22:15
@MorrisJobke
Copy link
Member

Revert: #1532
Redo: #1533

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