mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/12090] Change redirect tests to use route()
PHPBB3-12090
This commit is contained in:
@@ -17,3 +17,15 @@ foo_exception_controller:
|
||||
foo_redirect_controller:
|
||||
pattern: /foo/redirect
|
||||
defaults: { _controller: foo_bar.controller:redirect }
|
||||
|
||||
foo_index_controller:
|
||||
pattern: /index
|
||||
defaults: { _controller: foo_bar.controller:redirect }
|
||||
|
||||
foo_tests_index_controller:
|
||||
pattern: /tests/index
|
||||
defaults: { _controller: foo_bar.controller:redirect }
|
||||
|
||||
foo_tests_dotdot_index_controller:
|
||||
pattern: /tests/../index
|
||||
defaults: { _controller: foo_bar.controller:redirect }
|
||||
|
@@ -63,15 +63,15 @@ class controller
|
||||
'tests/index.php',
|
||||
),
|
||||
array(
|
||||
$this->helper->url('index'),
|
||||
$this->helper->url('foo_index_controller'),
|
||||
$rewrite_prefix . 'index',
|
||||
),
|
||||
array(
|
||||
$this->helper->url('tests/index'),
|
||||
$this->helper->url('foo_tests_index_controller'),
|
||||
$rewrite_prefix . 'tests/index',
|
||||
),
|
||||
array(
|
||||
$this->helper->url('tests/../index'),
|
||||
$this->helper->url('foo_tests_dotdot_index_controller'),
|
||||
$rewrite_prefix . 'index',
|
||||
),
|
||||
/*
|
||||
|
Reference in New Issue
Block a user