mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 15:27:16 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user