We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b1aba3 commit d5e6f83Copy full SHA for d5e6f83
src/Boot/DrupalBoot.php
@@ -34,11 +34,13 @@ protected function scanUpForUri($root, $scan)
34
if (file_exists("$scan/settings.php")) {
35
return $scan;
36
}
37
- $next = dirname($scan);
+ // Use Path::getDirectory instead of dirname to
38
+ // avoid certain bugs. Returns a canonicalized path.
39
+ $next = Path::getDirectory($scan);
40
if ($next == $scan) {
41
return false;
42
- $scan = Path::canonicalize($next);
43
+ $scan = $next;
44
if ($scan == $root) {
45
46
0 commit comments