Skip to content

Commit

Permalink
Strip trailing slash before concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Apr 17, 2018
1 parent 6d2cdd2 commit 508feda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/private/App/AppManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,11 @@ public function getAppWebPath($appId) {
$appRoot['url'] = substr($appRoot['url'], 3);
$ocWebRoot = dirname($ocWebRoot);
}
return $ocWebRoot . '/' . ltrim($appRoot['url'], '/');
return sprintf(
"%s/%s",
rtrim($ocWebRoot, '/'),
ltrim($appRoot['url'], '/')
);
}
return false;
}
Expand Down

0 comments on commit 508feda

Please sign in to comment.