Skip to content

Commit

Permalink
Fix displaying length of blob columns
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jan 31, 2013
1 parent 0448bd1 commit 15e83e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adminer/include/adminer.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion adminer/include/version.inc.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
$VERSION = "3.6.3";
$VERSION = "3.6.4-dev";
4 changes: 3 additions & 1 deletion changes.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 15e83e9

Please sign in to comment.