diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-01 10:40:18 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-09-01 10:40:18 +0200 |
commit | 9e2d47e519783a991962e1fe2c9f28d77756ae49 (patch) | |
tree | d3768633982577813e55ecb651084a0a3a5e6693 /tests/legacy | |
parent | aca995e09cf9c210ffe45584fbe50dcedb8bdebb (diff) | |
download | Shaarli-9e2d47e519783a991962e1fe2c9f28d77756ae49.tar.gz Shaarli-9e2d47e519783a991962e1fe2c9f28d77756ae49.tar.zst Shaarli-9e2d47e519783a991962e1fe2c9f28d77756ae49.zip |
Fix legacy redirection when Shaarli instance is under a subfolder
Diffstat (limited to 'tests/legacy')
-rw-r--r-- | tests/legacy/LegacyControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/legacy/LegacyControllerTest.php b/tests/legacy/LegacyControllerTest.php index 460fbb3b..2bbbb1d7 100644 --- a/tests/legacy/LegacyControllerTest.php +++ b/tests/legacy/LegacyControllerTest.php | |||
@@ -66,11 +66,11 @@ class LegacyControllerTest extends TestCase | |||
66 | { | 66 | { |
67 | return [ | 67 | return [ |
68 | ['post', [], '/admin/shaare', true], | 68 | ['post', [], '/admin/shaare', true], |
69 | ['post', [], '/login?returnurl=/admin/shaare', false], | 69 | ['post', [], '/login?returnurl=/subfolder/admin/shaare', false], |
70 | ['post', ['title' => 'test'], '/admin/shaare?title=test', true], | 70 | ['post', ['title' => 'test'], '/admin/shaare?title=test', true], |
71 | ['post', ['title' => 'test'], '/login?returnurl=/admin/shaare?title=test', false], | 71 | ['post', ['title' => 'test'], '/login?returnurl=/subfolder/admin/shaare?title=test', false], |
72 | ['addlink', [], '/admin/add-shaare', true], | 72 | ['addlink', [], '/admin/add-shaare', true], |
73 | ['addlink', [], '/login?returnurl=/admin/add-shaare', false], | 73 | ['addlink', [], '/login?returnurl=/subfolder/admin/add-shaare', false], |
74 | ['login', [], '/login', true], | 74 | ['login', [], '/login', true], |
75 | ['login', [], '/login', false], | 75 | ['login', [], '/login', false], |
76 | ['logout', [], '/admin/logout', true], | 76 | ['logout', [], '/admin/logout', true], |