]> source.dussan.org Git - nextcloud-server.git/commit
Only use realpath for real directories (#26060) 1517/head
authorVincent Petry <pvince81@owncloud.com>
Thu, 8 Sep 2016 13:14:20 +0000 (15:14 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 26 Sep 2016 09:22:46 +0000 (11:22 +0200)
commit7535d3e391ce959b70ea19854a1628e84e5430e9
tree6eac1c180643c58ead1b8031fcc64bcb4d2b0aab
parente0dd6768be6dee144381e9159696a59c1863508d
Only use realpath for real directories (#26060)

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 https://github.com/owncloud/core/pull/26060

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
lib/private/Files/Storage/Local.php