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:
committed by
Hypolite Petovan
parent
f580d8e5c0
commit
2e4d654c0a
@@ -36,7 +36,7 @@ use Friendica\Util\Strings;
|
||||
*/
|
||||
class Delegation extends BaseSettings
|
||||
{
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!DI::app()->isLoggedIn()) {
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
||||
|
||||
@@ -36,7 +36,7 @@ use Friendica\Network\HTTPException;
|
||||
*/
|
||||
class Display extends BaseSettings
|
||||
{
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!DI::app()->isLoggedIn()) {
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
||||
|
||||
@@ -41,7 +41,7 @@ use Friendica\Util\Temporal;
|
||||
|
||||
class Index extends BaseSettings
|
||||
{
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
||||
@@ -33,7 +33,7 @@ use Friendica\Network\HTTPException;
|
||||
|
||||
class Crop extends BaseSettings
|
||||
{
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!Session::isAuthenticated()) {
|
||||
return;
|
||||
|
||||
@@ -34,7 +34,7 @@ use Friendica\Util\Strings;
|
||||
|
||||
class Index extends BaseSettings
|
||||
{
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!Session::isAuthenticated()) {
|
||||
return;
|
||||
|
||||
@@ -66,7 +66,7 @@ class AppSpecific extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
||||
@@ -33,7 +33,7 @@ use PragmaRX\Google2FA\Google2FA;
|
||||
|
||||
class Index extends BaseSettings
|
||||
{
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
||||
@@ -64,7 +64,7 @@ class Recovery extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
||||
@@ -48,7 +48,7 @@ class Trusted extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
||||
@@ -70,7 +70,7 @@ class Verify extends BaseSettings
|
||||
}
|
||||
}
|
||||
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user