diff --git a/ChangeLog b/ChangeLog index b83fb62f3..d2190e398 100644 --- a/ChangeLog +++ b/ChangeLog @@ -29,6 +29,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1805102 [display] TextareaAutoSelect issues: set this parameter default value to false to help cut&paste from a terminal window; also set focus to the textarea +- bug #1814463 [display] Wrong database size 2.11.1.2 (2007-10-17) - fixed XSS in server_status.php, thanks to Omer Singer, The DigiTrust Group diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 67e7db81d..b80b02416 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1286,8 +1286,12 @@ function PMA_formatByteDown($value, $limes = 6, $comma = 0) } // end for if ($unit != $GLOBALS['byteUnits'][0]) { - $return_value = PMA_formatNumber($value, 5, $comma); + // if the unit is not bytes (as represented in current language) + // reformat with max length of 5 + // 4th parameter=true means do not reformat if value < 1 + $return_value = PMA_formatNumber($value, 5, $comma, true); } else { + // do not reformat, just handle the locale $return_value = PMA_formatNumber($value, 0); } @@ -1357,7 +1361,7 @@ function PMA_formatNumber($value, $length = 3, $comma = 0, $only_down = false) $length = 3 - $comma; } - // check for negativ value to retain sign + // check for negative value to retain sign if ($value < 0) { $sign = '-'; $value = abs($value);