Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'EvanDotPro/hotfix/windows-detect-baseurl'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PhpEnvironment/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ public function detectBaseUrl()
}

// Directory portion of base path matches.
if (0 === strpos($requestUri, dirname($baseUrl))) {
$baseUrl = dirname($baseUrl);
return $baseUrl;
$baseDir = str_replace('\\','/', dirname($baseUrl));
if (0 === strpos($requestUri, $baseDir)) {
return $baseDir;
}

$truncatedRequestUri = $requestUri;
Expand Down

0 comments on commit cc72526

Please # to comment.