mirror of
https://github.com/getgrav/grav.git
synced 2025-12-05 15:29:57 +01:00
Fixed Flex from indexing hidden folders/files as objects
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
1. [](#bugfix)
|
||||
* Fixed non-namespaced exceptions in scheduler
|
||||
* Fixed trailing slash redirect in multlang environment [#2350](https://github.com/getgrav/grav/issues/2350)
|
||||
* Fixed Flex from indexing hidden folders/files as objects
|
||||
|
||||
# v1.6.0-rc.1
|
||||
## 01/30/2019
|
||||
|
||||
@@ -61,7 +61,7 @@ class FileStorage extends FolderStorage
|
||||
$list = [];
|
||||
/** @var \SplFileInfo $info */
|
||||
foreach ($iterator as $filename => $info) {
|
||||
if (!$info->isFile() || !($key = $this->getKeyFromPath($filename))) {
|
||||
if (!$info->isFile() || !($key = $this->getKeyFromPath($filename)) || strpos($info->getFilename(), '.') === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -407,7 +407,7 @@ class FolderStorage extends AbstractFilesystemStorage
|
||||
$list = [];
|
||||
/** @var \SplFileInfo $info */
|
||||
foreach ($iterator as $filename => $info) {
|
||||
if (!$info->isDir()) {
|
||||
if (!$info->isDir() || strpos($info->getFilename(), '.') === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user