From: Michael Date: Sat, 27 Jul 2024 13:15:41 +0000 (+0000) Subject: Issue 14325: Process "post" requests only once X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0b710ce4fb7443ecdac83a058c0de0cf4dfe8772;p=friendica.git Issue 14325: Process "post" requests only once --- diff --git a/src/BaseModule.php b/src/BaseModule.php index 2f511bc547..4f7a0feb5c 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -224,17 +224,17 @@ abstract class BaseModule implements ICanHandleRequests switch ($this->args->getMethod()) { case Router::DELETE: $this->delete($request); - break; + return $this->response->generate(); case Router::PATCH: $this->patch($request); - break; + return $this->response->generate(); case Router::POST: Core\Hook::callAll($this->args->getModuleName() . '_mod_post', $request); $this->post($request); - break; + return $this->response->generate(); case Router::PUT: $this->put($request); - break; + return $this->response->generate(); } $timestamp = microtime(true);