From 7197ab1ecbb19f1720a71059c05eba453913ab76 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 27 Sep 2010 17:05:45 +0200 Subject: [PATCH] Report correct length of blob (bug #3070569) --- adminer/include/adminer.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 8f6725e9..f2144ba7 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -152,7 +152,7 @@ document.getElementById('username').focus(); function selectVal($val, $link, $field) { $return = ($val != "NULL" && $field["type"] == "char" ? "$val" : $val); if (ereg('binary|blob|bytea|raw|file', $field["type"]) && !is_utf8($val)) { - $return = lang('%d byte(s)', strlen($val)); + $return = lang('%d byte(s)', strlen(html_entity_decode($val, ENT_QUOTES))); } return ($link ? "$return" : $return); }