From bab8c1f8e51a93443c29fdabfdc9951d0efde473 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 13 May 2014 14:17:51 +0200 Subject: Fixed getAbsolutePath case when path is "0" Make sure to correctly check for string emptiness when the passed path is "0". --- lib/private/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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] !== '/') { -- cgit v1.2.3