summaryrefslogtreecommitdiffstats
path: root/lib/private/Route/Router.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-11 22:28:29 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-19 22:00:47 +0200
commit387cac4c5fb9c797a94b8312778cd503cc951dda (patch)
tree7c391f107f498100b2fb16d182ff069dfe44f2b8 /lib/private/Route/Router.php
parent053ee7b3860c352004bede82d040b4bd34ecb072 (diff)
downloadnextcloud-server-387cac4c5fb9c797a94b8312778cd503cc951dda.tar.gz
nextcloud-server-387cac4c5fb9c797a94b8312778cd503cc951dda.zip
Properly inject IRouter into URLGenerator to properly encapsulate tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Route/Router.php')
-rw-r--r--lib/private/Route/Router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php
index ec91e08472c..94c637e5e0d 100644
--- a/lib/private/Route/Router.php
+++ b/lib/private/Route/Router.php
@@ -73,7 +73,7 @@ class Router implements IRouter {
$this->logger = $logger;
$baseUrl = \OC::$WEBROOT;
if (!(\OC::$server->getConfig()->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true')) {
- $baseUrl = \OC::$server->getURLGenerator()->linkTo('', 'index.php');
+ $baseUrl .= '/index.php';
}
if (!\OC::$CLI && isset($_SERVER['REQUEST_METHOD'])) {
$method = $_SERVER['REQUEST_METHOD'];