diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-08-20 18:21:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-20 18:21:31 +0200 |
commit | 8fbec6aae3d738fe08b73fd95bd1180f96e3120a (patch) | |
tree | 750b9f30d1775147a915f70b5548699277f14799 /tests/lib/AppFramework/Http | |
parent | 8007ea60fbfa5de663753813a03041ca4c53384f (diff) | |
parent | d50e7ee36c5607da848702ca36f7b34505c1622e (diff) | |
download | nextcloud-server-8fbec6aae3d738fe08b73fd95bd1180f96e3120a.tar.gz nextcloud-server-8fbec6aae3d738fe08b73fd95bd1180f96e3120a.zip |
Merge pull request #984 from nextcloud/dont-read-server-variable
Remove reading PATH_INFO from server variable
Diffstat (limited to 'tests/lib/AppFramework/Http')
-rw-r--r-- | tests/lib/AppFramework/Http/RequestTest.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php index 8df81afeb3b..a3433e558d8 100644 --- a/tests/lib/AppFramework/Http/RequestTest.php +++ b/tests/lib/AppFramework/Http/RequestTest.php @@ -1063,22 +1063,6 @@ class RequestTest extends \Test\TestCase { $this->assertSame('www.owncloud.org', self::invokePrivate($request, 'getOverwriteHost')); } - public function testGetPathInfoWithSetEnv() { - $request = new Request( - [ - 'server' => [ - 'PATH_INFO' => 'apps/files/', - ] - ], - $this->secureRandom, - $this->config, - $this->csrfTokenManager, - $this->stream - ); - - $this->assertSame('apps/files/', $request->getPathInfo()); - } - /** * @expectedException \Exception * @expectedExceptionMessage The requested uri(/foo.php) cannot be processed by the script '/var/www/index.php') |