diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 6c1c2049..52427d2c 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -273,13 +273,13 @@ if (!$columns) { } if (!isset($val)) { $val = "NULL"; - } elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && !is_utf8($val)) { + } elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && !is_utf8($val)) { //! download link may be printed even with is_utf8 $val = '' . lang('%d byte(s)', strlen($val)) . ''; } else { 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))); + $val = nl2br(shorten_utf8($val, intval($text_length))); // usage of LEFT() would reduce traffic but complicates query } else { $val = nl2br(htmlspecialchars($val)); if ($fields[$key]["type"] == "char") {