View Issue Details

IDProjectCategoryView StatusLast Update
0030428mantisbtinstallationpublic2023-10-31 16:32
Reportermbrenner Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.25.4 
Target Version2.26.0Fixed in Version2.26.0 
Summary0030428: admin/check.php script says upload_max_size but actually checks upload_max_filesize
Description

The admin/check.php script checks whether the php.ini value post_max_size is at least upload_max_filesize, but the reported message is saying upload_max_size instead of upload_max_filesize.

script code:
check_print_test_row(
'post_max_size php.ini directive is at least equal to the upload_max_size directive',
ini_get_number( 'post_max_size' ) >= ini_get_number( 'upload_max_filesize' ),
array( false => 'The current value of the post_max_size directive is ' . htmlentities( ini_get_number( 'post_max_size' ) ) . ' bytes. This value needs to be at least equal to the upload_max_size directive value of ' . htmlentities( ini_get_number( 'upload_max_filesize' ) ) . ' bytes.' )
);

Steps To Reproduce

Adjust php.ini so that post_max_size is smaller than upload_max_filesize and run admin/check.php

TagsNo tags attached.

Activities

atrol

atrol

2022-05-31 15:29

developer   ~0066661

Thanks @mbrenner for the report.

PR https://github.com/mantisbt/mantisbt/pull/1819

Related Changesets

MantisBT: master 4fb8f967

2022-05-31 15:25

atrol


Details Diff
Fix message when checking upload_max_filesize

Fixes 0030428
Affected Issues
0030428
mod - admin/check/check_php_inc.php Diff File