Don't support page folders that contain param_sep in the folder name - https://github.com/getgrav/grav-plugin-admin/issues/796

This commit is contained in:
Andy Miller
2016-09-29 17:03:28 -06:00
parent d7dce7a6d7
commit 50ff5f0920
2 changed files with 7 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
* Fixed missing `progress` method in the DirectInstall Command
* `Response` class now handles better unsuccessful requests such as 404 and 401
* Fixed saving of `external` page types [admin #789](https://github.com/getgrav/grav-plugin-admin/issues/789)
* Fixed issue deleting parent folder of folder with `param_sep` in the folder name [admin #796](https://github.com/getgrav/grav-plugin-admin/issues/796)
# v1.1.5
## 09/09/2016

View File

@@ -902,6 +902,12 @@ class Pages
$last_modified = $modified;
}
} elseif ($file->isDir() && !in_array($file->getFilename(), $this->ignore_folders)) {
// if folder contains separator, continue
if (Utils::contains($file->getFilename(), $config->get('system.param_sep', ':'))) {
continue;
}
if (!$page->path()) {
$page->path($file->getPath());
}