diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-13 14:17:51 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-13 17:38:46 +0200 |
commit | bab8c1f8e51a93443c29fdabfdc9951d0efde473 (patch) | |
tree | a63f05e14610b8d2a37ed12c14f91cf4e7da821b /lib | |
parent | 6d00675d694c0d8ec7bf451ae5eb938ac6ff363c (diff) | |
download | nextcloud-server-bab8c1f8e51a93443c29fdabfdc9951d0efde473.tar.gz nextcloud-server-bab8c1f8e51a93443c29fdabfdc9951d0efde473.zip |
Fixed getAbsolutePath case when path is "0"
Make sure to correctly check for string emptiness when the passed path
is "0".
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/view.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 407f5981957..39c71cfc0b0 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -37,7 +37,7 @@ class View { } public function getAbsolutePath($path = '/') { - if (!$path) { + if ($path === '') { $path = '/'; } if ($path[0] !== '/') { |