From 4fb4e318f15836ca1918c60d3f831c65780172ff Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Tue, 14 Jul 2020 12:25:35 +0800 Subject: [PATCH] Add "develop.allowDeepSymlinks" configuration option. Refs: https://github.com/octobercms/library/pull/491 --- config/develop.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/config/develop.php b/config/develop.php index cd4aee7d7..2c1cbc642 100644 --- a/config/develop.php +++ b/config/develop.php @@ -20,5 +20,27 @@ return [ */ 'decompileBackendAssets' => false, + + /* + |-------------------------------------------------------------------------- + | Allow deep-level symlinks + |-------------------------------------------------------------------------- + | + | October CMS, by default, will allow symlinks within the first level of + | subdirectories. When this feature is enabled, the system will allow + | symlinks to be used at any directory level. This can be useful for + | symlinking individual plugins or themes. + | + | Please note that this has a negative effect on performance. This feature + | abides by "cms.restrictBaseDir" - if enabled, symlinks cannot point to + | resources outside of the root folder. + | + | true - allow symlinks at any level + | + | false - only allow symlinks at the first level of subdirectories (default) + | + */ + + 'allowDeepSymlinks' => false, ];