diff options
author | Holger Hees <holger.hees@gmail.com> | 2020-01-13 19:53:08 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-06 22:34:46 +0300 |
commit | e70249e0896c49cd04365dc7bd088dab8bc6d5dd (patch) | |
tree | f3b4b97e3324ab6bc76c0771ee6fda03fd9ef2e8 /tests/lib | |
parent | b2959d7c86e39bd0064f89dab0912c28334d56ab (diff) |
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 /
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php index 306ee9f841c..69f1aa5d547 100644 --- a/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php +++ b/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php @@ -535,7 +535,7 @@ class SecurityMiddlewareTest extends \Test\TestCase { new StrictCookieMissingException() ); - $expected = new RedirectResponse(\OC::$WEBROOT); + $expected = new RedirectResponse(\OC::$WEBROOT . '/'); $this->assertEquals($expected , $response); } |