mirror of
https://github.com/vrana/adminer.git
synced 2026-03-04 11:31:34 +01:00
Use
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@667 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -249,7 +249,9 @@ if (!$columns) {
|
||||
} elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && !is_utf8($val)) {
|
||||
$val = '<a href="' . htmlspecialchars($SELF) . 'download=' . urlencode($_GET["select"]) . '&field=' . urlencode($key) . '&' . $unique_idf . '">' . lang('%d byte(s)', strlen($val)) . '</a>';
|
||||
} else {
|
||||
if (intval($text_length) > 0 && preg_match('~blob|text~', $fields[$key]["type"])) {
|
||||
if (!strlen(trim($val))) {
|
||||
$val = " ";
|
||||
} elseif (intval($text_length) > 0 && preg_match('~blob|text~', $fields[$key]["type"])) {
|
||||
$val = shorten_utf8($val, intval($text_length));
|
||||
} else {
|
||||
$val = nl2br(htmlspecialchars($val));
|
||||
|
||||
Reference in New Issue
Block a user