summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2013-11-26 10:13:58 -0800
committerBjörn Schießle <bjoern@schiessle.org>2013-11-26 10:13:58 -0800
commit1fef97f6a535cd79d0aea600634ec54c5f87bcea (patch)
tree858607759cc0db65b7e5b41e77a32064a407ccd6 /tests
parente2ca88af5ed5f57f8e4328221280c95973171039 (diff)
parent52941341fde072410308ff1e27742095f5d38f21 (diff)
downloadnextcloud-server-1fef97f6a535cd79d0aea600634ec54c5f87bcea.tar.gz
nextcloud-server-1fef97f6a535cd79d0aea600634ec54c5f87bcea.zip
Merge pull request #6060 from owncloud/fix-6050-oc6
fixing getRawPathInfo() once more
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/request.php11
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'),
);
}
}