From c61d9eb6e8fc3aea11e5f3103a8c6c4b9c384a16 Mon Sep 17 00:00:00 2001 From: g7sim <60353863+g7sim@users.noreply.github.com> Date: Sat, 10 Jun 2023 20:09:10 +0200 Subject: [PATCH] Update Output.php file_exists(): open_basedir restriction in effect. - php 8.2 --- include/tool/Output.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/tool/Output.php b/include/tool/Output.php index 553d518..732f61c 100644 --- a/include/tool/Output.php +++ b/include/tool/Output.php @@ -263,7 +263,8 @@ namespace gp\tool{ $customizer_file = $layout_dir . '/customizer.php'; } - if( !file_exists($customizer_file) ){ + $cust_path = stream_resolve_include_path($customizer_file); + if (!$cust_path || !is_readable($cust_path)) { // msg('customizer file ' . htmlspecialchars($customizer_file) . ' does not exist'); // TODO remove return []; };