Page 1 of 1

Small issue with upload_max_filesize

Posted: Fri Aug 17, 2012 4:43 pm
by ascott
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I'm currently evaluating Hesk and I'm extremely impressed. I did come across one small issue, though.

The maximum upload size for my server is 100M as indicated by the upload_max_filesize value. However, my shared server reports it as 100m - note the lower case 'm'. This causes the switch statement in admin_settings.php to skip over the multiplier and Hesk ends up thinking my maximum size is 1M.

I solved the problem locally by adding a case 'm' to the switch, but it might be worth including that in the released version.

Re: Small issue with upload_max_filesize

Posted: Fri Aug 17, 2012 5:22 pm
by Klemen
Thanks for the heads up! I will include a fix for this in version 2.4.1 (compatible with 2.4, but with few bugs fixed) scheduled for this weekend.

This will be the official fix: change all instances of

Code: Select all

$last = substr($tmp,-1);
to

Code: Select all

$last = strtoupper(substr($tmp,-1));