Fix Utils::normalizePath() truncating zeros out of path (#882)

good fix! cheers.
This commit is contained in:
Benny
2016-06-06 21:01:28 +02:00
committed by Andy Miller
parent 2ba1875cc1
commit 0e0ed38168

View File

@@ -330,7 +330,7 @@ abstract class Utils
$segments = explode('/', trim($path, '/'));
$ret = [];
foreach ($segments as $segment) {
if (($segment == '.') || empty($segment)) {
if (($segment == '.') || strlen($segment) == 0) {
continue;
}
if ($segment == '..') {