Skip to content

Commit

Permalink
Don't support page folders that contain param_sep in the folder nam…
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Sep 29, 2016
1 parent d7dce7a commit 50ff5f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions system/src/Grav/Common/Page/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,12 @@ protected function recurse($directory, Page &$parent = null)
$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());
}
Expand Down

0 comments on commit 50ff5f0

Please sign in to comment.