diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 39dd099c..f1daceb7 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -207,7 +207,7 @@ function select($result, $dbh2 = null) { } else { if ($blobs[$key] && !is_utf8($val)) { $val = "" . lang('%d byte(s)', strlen($val)) . ""; //! link to download - } elseif (!strlen(trim($val))) { + } elseif (!strlen(trim($val, " \t"))) { $val = " "; // some content to print a border } else { $val = nl2br(htmlspecialchars($val)); diff --git a/adminer/select.inc.php b/adminer/select.inc.php index dff0f66b..69fb8af7 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -263,7 +263,7 @@ if (!$columns) { } elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && !is_utf8($val)) { $val = '' . lang('%d byte(s)', strlen($val)) . ''; } else { - if (!strlen(trim($val))) { + if (!strlen(trim($val, " \t"))) { $val = " "; } elseif (intval($text_length) > 0 && preg_match('~blob|text~', $fields[$key]["type"])) { $val = nl2br(shorten_utf8($val, intval($text_length)));