mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Display whitespace in texts (bug #2858042)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1110 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -219,12 +219,12 @@ if (!$columns) {
|
||||
if (ereg('blob|binary', $fields[$key]["type"]) && strlen($val)) {
|
||||
$link = h(ME . 'download=' . urlencode($TABLE) . '&field=' . urlencode($key) . '&') . $unique_idf;
|
||||
}
|
||||
if (!strlen(trim($val, " \t"))) {
|
||||
if (!strlen($val)) {
|
||||
$val = " ";
|
||||
} elseif (strlen($text_length) && ereg('blob|text', $fields[$key]["type"]) && is_utf8($val)) {
|
||||
$val = nl2br(shorten_utf8($val, max(0, intval($text_length)))); // usage of LEFT() would reduce traffic but complicate query
|
||||
$val = whitespace(shorten_utf8($val, max(0, intval($text_length)))); // usage of LEFT() would reduce traffic but complicate query
|
||||
} else {
|
||||
$val = nl2br(h($val));
|
||||
$val = whitespace(h($val));
|
||||
}
|
||||
|
||||
if (!$link) { // link related items
|
||||
|
Reference in New Issue
Block a user