Skip to content

Commit

Permalink
Fixed: wrong base path for router
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroPF committed Aug 30, 2016
1 parent f34c6be commit d1c4295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router.php
Expand Up @@ -80,7 +80,7 @@ public function __construct($basePath) {
if (null !== $basePath && is_string($basePath) && !empty($basePath)) {
$basePath = Utils::filterPath($basePath);
if (Utils::inString($basePath, $_SERVER['DOCUMENT_ROOT'])) {
$this->basePath = Utils::removeSubstring($basePath, $_SERVER['DOCUMENT_ROOT']);
$this->basePath = Utils::removeDouble("/".Utils::removeSubstring($basePath, $_SERVER['DOCUMENT_ROOT']),"/");
} else {
$this->basePath = $basePath;
}
Expand Down

0 comments on commit d1c4295

Please sign in to comment.