]> source.dussan.org Git - nextcloud-server.git/commit
Update SecurityMiddleware.php 18867/head
authorHolger Hees <holger.hees@gmail.com>
Mon, 13 Jan 2020 16:53:08 +0000 (17:53 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 6 Jul 2020 19:34:46 +0000 (21:34 +0200)
commite70249e0896c49cd04365dc7bd088dab8bc6d5dd
treef3b4b97e3324ab6bc76c0771ee6fda03fd9ef2e8
parentb2959d7c86e39bd0064f89dab0912c28334d56ab
Update SecurityMiddleware.php

OC::$WEBROOT can be empty in case if your nextcloud installation has no url prefix. This will result in an empty Location Header.

in other areas OC::$WEBROOT is always used together with an /
lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php