mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Fix Utils::normalizePath() truncating zeros out of path (#882)
good fix! cheers.
This commit is contained in:
@@ -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 == '..') {
|
||||
|
||||
Reference in New Issue
Block a user