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