Permalink
Browse files

Report correct length of blob (bug #3070569)

  • Loading branch information...
vrana committed Sep 27, 2010
1 parent 6557b4a commit 7197ab1ecbb19f1720a71059c05eba453913ab76
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/adminer.inc.php
@@ -152,7 +152,7 @@ function rowDescriptions($rows, $foreignKeys) {
function selectVal($val, $link, $field) {
$return = ($val != "<i>NULL</i>" && $field["type"] == "char" ? "<code>$val</code>" : $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 ? "<a href='$link'>$return</a>" : $return);
}

0 comments on commit 7197ab1

Please sign in to comment.