mirror of
https://github.com/friendica/friendica
synced 2025-04-26 08:30: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
|
@ -61,7 +61,7 @@ class Advanced extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
$cid = $this->parameters['id'];
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ use Friendica\Util\XML;
|
|||
|
||||
class Poke extends BaseModule
|
||||
{
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user() || empty($this->parameters['id'])) {
|
||||
return self::postReturn(false);
|
||||
|
|
|
@ -71,7 +71,7 @@ class Profile extends BaseModule
|
|||
$this->config = $config;
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
|
|
@ -74,7 +74,7 @@ class Revoke extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
throw new HTTPException\UnauthorizedException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue