Skip to content

Commit

Permalink
fix: double trailing slash on docroot
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed May 6, 2024
1 parent db78215 commit af35ce1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public function __construct($name = "RockShell", $version = null)
parent::__construct($container, $events, $version);
$this->setName($name);
$this->root = $this->normalizeSeparators(dirname(__DIR__)) . "/";
$this->docroot = $this->root . (getenv('DDEV_DOCROOT') ?: getenv('ROCKSHELL_DOCROOT')) . "/";
$this->docroot =
rtrim($this->root . (getenv('DDEV_DOCROOT') ?: getenv('ROCKSHELL_DOCROOT')), "/") . "/";
}

/**
Expand Down

0 comments on commit af35ce1

Please sign in to comment.