mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
[feature/controller] Use query string, not path info, for controller access
This is hopefully just temporary until we can fix the relative path issue. PHPBB3-10864
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
||||
@@ -24,6 +26,12 @@ $user->session_begin();
|
||||
$auth->acl($user->data);
|
||||
$user->setup('app');
|
||||
|
||||
// Until we fix the issue with relative paths, we have to fake path info to
|
||||
// allow urls like app.php?controller=foo/bar
|
||||
$controller = $request->variable('controller', '', false, phpbb_request_interface::GET);
|
||||
$uri = '/' . $controller;
|
||||
$symfony_request = Request::create($uri);
|
||||
|
||||
$http_kernel = $phpbb_container->get('http_kernel');
|
||||
$response = $http_kernel->handle($symfony_request);
|
||||
$response->send();
|
||||
|
Reference in New Issue
Block a user