From 6703467a13cf3abb7e3e4782483979a185923e3f Mon Sep 17 00:00:00 2001 From: sfritzsche <32567473+sfritzsche@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:19:14 +0200 Subject: [PATCH] Get document root from server Change extraction method --- Error/Processor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Error/Processor.php b/Error/Processor.php index c51a3a9..42d3a04 100755 --- a/Error/Processor.php +++ b/Error/Processor.php @@ -435,8 +435,8 @@ protected function _getClientIp() protected function _getIndexDir() { $documentRoot = ''; - if (!empty($this->request->getParam('DOCUMENT_ROOT'))) { - $documentRoot = rtrim(realpath($this->request->getParam('DOCUMENT_ROOT')), '/'); + if (!empty($this->request->getServer('DOCUMENT_ROOT'))) { + $documentRoot = rtrim(realpath($this->request->getServer('DOCUMENT_ROOT')), '/'); } return dirname($documentRoot . $this->_scriptName) . '/';