configurable paabgabe types for signature check; finetuned signature response message; phrasen & code cleanup;

This commit is contained in:
Johann Hoffmann
2026-01-13 12:32:41 +01:00
parent cc0f38b276
commit 7c1f239dcb
7 changed files with 24 additions and 49 deletions
-9
View File
@@ -309,15 +309,6 @@ class FHCAPI_Controller extends Auth_Controller
$max_post = (int)(ini_get('post_max_size'));
$memory_limit = (int)(ini_get('memory_limit'));
$max_upload_mb = min($max_upload, $max_post, $memory_limit); // smallest of 3 config values
$this->addMeta('stats', array(
'$content_length_bytes' => $content_length_bytes,
'$content_length' => $content_length,
'$max_upload' => $max_upload,
'$max_post' => $max_post,
'$memory_limit' => $memory_limit,
'$max_upload_mb' => $max_upload_mb,
));
if($content_length >= $max_upload_mb) {
$this->terminateWithError($this->p->t('global', 'filesizeExceeded'), 'general');