diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-26 14:13:33 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-26 14:13:33 +0100 |
commit | 2a93720f3f967775f7e5279b99348f8e4346e951 (patch) | |
tree | 603861b0237df9d2f7ba1bcf72be6c3a01a6ffb0 /tests/lib/request.php | |
parent | dc67c7efa9ff20f8b4466e5b6490405439d4a90f (diff) | |
download | nextcloud-server-2a93720f3f967775f7e5279b99348f8e4346e951.tar.gz nextcloud-server-2a93720f3f967775f7e5279b99348f8e4346e951.zip |
fixes #6050
Diffstat (limited to 'tests/lib/request.php')
-rw-r--r-- | tests/lib/request.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/lib/request.php b/tests/lib/request.php index a740751f060..090cebc9231 100644 --- a/tests/lib/request.php +++ b/tests/lib/request.php @@ -42,6 +42,13 @@ class Test_Request extends PHPUnit_Framework_TestCase { array('/core/ajax/translations.php', 'index.php/core/ajax/translations.php', 'index.php'), array('/core/ajax/translations.php', '/index.php/core/ajax/translations.php', '/index.php'), array('/core/ajax/translations.php', '//index.php/core/ajax/translations.php', '/index.php'), + array('', '/oc/core', '/oc/core/index.php'), + array('', '/oc/core/', '/oc/core/index.php'), + array('', '/oc/core/index.php', '/oc/core/index.php'), + array('/core/ajax/translations.php', '/core/ajax/translations.php', 'index.php'), + array('/core/ajax/translations.php', '//core/ajax/translations.php', '/index.php'), + array('/core/ajax/translations.php', '/oc/core/ajax/translations.php', '/oc/index.php'), + array('/1', '/oc/core/1', '/oc/core/index.php'), ); } @@ -60,9 +67,7 @@ class Test_Request extends PHPUnit_Framework_TestCase { function rawPathInfoThrowsExceptionProvider() { return array( - array('core/ajax/translations.php', '/index.php'), - array('/core/ajax/translations.php', '/index.php'), - array('//core/ajax/translations.php', '/index.php'), + array('/oc/core1', '/oc/core/index.php'), ); } } |