Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d129e2d

Browse files
rmuitweitzman
authored andcommitted
Continue #3166/2. Fix script name when Drupal uses a domain + subdir without scheme. (#3847)
* Continue #3166/2. Fix incorrect script name when Drupal uses a domain + subdir without scheme. * Do not append the slash to $this->uri. (Nothing indicates this is needed.)
1 parent b4d4596 commit d129e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Boot/DrupalBoot8.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function bootstrapDrupalSiteValidate(BootstrapManager $manager)
142142
// Account for users who omit the http:// prefix.
143143
if (empty($parsed_url['scheme'])) {
144144
$this->uri = 'http://' . $this->uri;
145-
$parsed_url = parse_url($this->uri);
145+
$parsed_url = parse_url('http://' . $uri);
146146
}
147147

148148
$server = [

0 commit comments

Comments
 (0)