git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4879
7612ce4b-ef26-0410-bec9-
ea0150e637f0
(#725443, #722823, #729225)
- Fix for bad attachment view link (#697381, #729295)
- Fix comp_in_new in search and addressbook not having right parameters (#731768).
-
+ - Fix max attachment filesize off by factor 10 when ini_var set in bytes (#730742).
**************************************
*** SquirrelMail Stable Series 1.4 ***
/* parse values like 8M and 2k into bytes */
function getByteSize($ini_size) {
- if(!$ini_size) return FALSE;
+ if(!$ini_size) {
+ return FALSE;
+ }
$ini_size = trim($ini_size);
break;
}
- $bytesize *= (int)substr($ini_size, 0, -1);
+ return ($bytesize * (int)substr($ini_size, 0, -1));
}
-
-
- return $bytesize;
+ return $ini_size;
}