SourceForge has been redesigned. Learn more.
Close

#1232 Max attachment size is divided by 10!

closed-fixed
nobody
Compose (426)
5
2003-05-18
2003-05-01
E. van Elk
No

The getByteSize function found in src/compose.php turns
something like:

6097152

into:

609715

so the maximum allowed attachment size shown in
squirrelmail is 10x too small!

Problem is in:
$bytesize *= (int)substr($ini_size, 0, -1);

the last character is ALWAYS removed, even when not G,
M or K (in which case $bytesize = 1).

Discussion

  • E. van Elk

    E. van Elk - 2003-05-01

    Logged In: YES
    user_id=721329

    quick and dirty workaround:

    default:
    bytesize = 1;
    $ini_size .= " ";

     
  • Thijs Kinkhorst

    Thijs Kinkhorst - 2003-05-18
    • status: open --> closed-fixed
     
  • Thijs Kinkhorst

    Thijs Kinkhorst - 2003-05-18

    Logged In: YES
    user_id=285765

    Fixed, thanks!

     

Log in to post a comment.