mirror of
https://github.com/friendica/friendica
synced 2025-04-19 21:10:10 +00:00
Make $_REQUEST processing independent of sub-calls
- Move HTTPInputData::process() into App::runFrontend() - Pass $_REQUEST (including processed Input) to every Module method - Delete $_POST parameters at Module post() calls because of $_REQUEST
This commit is contained in:
parent
f580d8e5c0
commit
2e4d654c0a
96 changed files with 156 additions and 156 deletions
|
@ -46,7 +46,7 @@ class Login extends BaseModule
|
|||
return self::form(Session::get('return_path'), intval(DI::config()->get('config', 'register_policy')) !== \Friendica\Module\Register::CLOSED);
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
$return_path = Session::get('return_path');
|
||||
Session::clear();
|
||||
|
|
|
@ -56,7 +56,7 @@ class Recovery extends BaseModule
|
|||
$this->session = $session;
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
|
|
@ -38,7 +38,7 @@ class Verify extends BaseModule
|
|||
{
|
||||
private static $errors = [];
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue