Permalink
Browse files

Fix displaying length of blob columns

  • Loading branch information...
1 parent 0448bd1 commit 15e83e939623a5d57a8ee1ea95b3f67451a49041 @vrana committed Jan 23, 2013
Showing with 5 additions and 3 deletions.
  1. +1 −1 adminer/include/adminer.inc.php
  2. +1 −1 adminer/include/version.inc.php
  3. +3 −1 changes.txt
@@ -202,7 +202,7 @@ function selectLink($val, $field) {
function selectVal($val, $link, $field) {
$return = ($val === null ? "<i>NULL</i>" : (ereg("char|binary", $field["type"]) && !ereg("var", $field["type"]) ? "<code>$val</code>" : $val));
if (ereg('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='" . h($link) . "'>$return</a>" : $return);
}
@@ -1,2 +1,2 @@
<?php
-$VERSION = "3.6.3";
+$VERSION = "3.6.4-dev";
View
@@ -1,4 +1,6 @@
-Adminer 3.6.3 (released 2012-01-23):
+Adminer 3.6.4-dev:
+
+Adminer 3.6.3 (released 2013-01-23):
Display error code in SQL query
Allow specifying external links
Treat Meta key same as Ctrl

0 comments on commit 15e83e9

Please sign in to comment.