diff --git a/ChangeLog b/ChangeLog index 89db739e45..0c51aa007e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -75,6 +75,7 @@ phpMyAdmin - ChangeLog 4.4.11.0 (not yet released) - bug Missing selected/entered values when editing active options in visual query builder - bug #4969 Autoload from prefs_storage not behaving properly +- bug #4972 Incorrect length computed for binary data 4.4.10.0 (2015-06-17) - bug #4950 Issues in database selection for replication diff --git a/libraries/DisplayResults.class.php b/libraries/DisplayResults.class.php index 45066b6ae8..ccca59e152 100644 --- a/libraries/DisplayResults.class.php +++ b/libraries/DisplayResults.class.php @@ -5221,7 +5221,7 @@ class PMA_DisplayResults if (isset($content)) { - $size = /*overload*/mb_strlen($content); + $size = /*overload*/mb_strlen($content, '8bit'); $display_size = PMA_Util::formatByteDown($size, 3, 1); $result .= ' - ' . $display_size[0] . ' ' . $display_size[1]; diff --git a/tbl_get_field.php b/tbl_get_field.php index c0d6dd3d71..5c09cdea97 100644 --- a/tbl_get_field.php +++ b/tbl_get_field.php @@ -49,6 +49,6 @@ if ($result === false) { PMA_downloadHeader( $table . '-' . $_GET['transform_key'] . '.bin', PMA_detectMIME($result), - /*overload*/mb_strlen($result) + /*overload*/mb_strlen($result, '8bit') ); echo $result;