]> git.joonet.de Git - adminer.git/commitdiff
Report correct length of blob (bug #3070569)
authorJakub Vrana <jakub@vrana.cz>
Mon, 27 Sep 2010 15:05:45 +0000 (17:05 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 27 Sep 2010 15:05:45 +0000 (17:05 +0200)
adminer/include/adminer.inc.php

index 8f6725e9bc197a14dbbdfa78c8f7c5ab8e7d9f1a..f2144ba750d35899cf8ad9f45c0819f17d22d6e4 100644 (file)
@@ -152,7 +152,7 @@ document.getElementById('username').focus();
        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);
        }