Skip to content

Commit

Permalink
Merge branch 'release-2.3.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Oct 31, 2013
2 parents fc8e18e + 06f03e3 commit 1990bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function __construct($settings = null)
if (strpos($requestUri, $scriptName) !== false) {
$physicalPath = $scriptName; // <-- Without rewriting
} else {
$physicalPath = dirname($scriptName); // <-- With rewriting
$physicalPath = ltrim(dirname($scriptName), '\\'); // <-- With rewriting
}
$env['SCRIPT_NAME'] = rtrim($physicalPath, '/'); // <-- Remove trailing slashes

Expand Down

0 comments on commit 1990bcf

Please sign in to comment.