Small issue with upload_max_filesize

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
ascott
Posts: 9
Joined: Fri Aug 17, 2012 4:25 pm

Small issue with upload_max_filesize

Post 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.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Small issue with upload_max_filesize

Post 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));
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply