mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 02:04:38 +00:00
Sanitize user input on all API routes (references #996)
This commit is contained in:
@@ -49,7 +49,7 @@ class SystemApiController extends BaseApiController
|
||||
{
|
||||
try
|
||||
{
|
||||
$requestBody = $request->getParsedBody();
|
||||
$requestBody = $this->GetParsedAndFilteredRequestBody($request);
|
||||
|
||||
$this->getLocalizationService()->CheckAndAddMissingTranslationToPot($requestBody['text']);
|
||||
return $this->EmptyApiResponse($response);
|
||||
|
Reference in New Issue
Block a user