HomePhorge

api: Check for post_max_size on api requests

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

api: Check for post_max_size on api requests

php documentation:
If the size of post data is greater than post_max_size, the $_POST and
$_FILES superglobals are empty.

When the action= and format= are not in the GET data,
the help page is returned in html, breaking the clients expected format.

Return api error with http status 413

Bug: T291754
Change-Id: I5906fb6b4412b161b198df0b51e2476e7e1079b8

Details

Provenance
UmherirrenderAuthored on Sep 27 2024, 8:00 PM

Event Timeline

Umherirrender <umherirrender_de.wp@web.de> committed rMWbe1c33e05ea3: api: Check for post_max_size on api requests (authored by Umherirrender <umherirrender_de.wp@web.de>).Oct 17 2024, 6:22 PM

Commit No Longer Exists

This commit no longer exists in the repository.