Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Error/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) . '/';
Expand Down