mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Comments
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@807 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -273,13 +273,13 @@ if (!$columns) {
|
|||||||
}
|
}
|
||||||
if (!isset($val)) {
|
if (!isset($val)) {
|
||||||
$val = "<i>NULL</i>";
|
$val = "<i>NULL</i>";
|
||||||
} 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 = '<a href="' . htmlspecialchars($SELF) . 'download=' . urlencode($_GET["select"]) . '&field=' . urlencode($key) . '&' . $unique_idf . '">' . lang('%d byte(s)', strlen($val)) . '</a>';
|
$val = '<a href="' . htmlspecialchars($SELF) . 'download=' . urlencode($_GET["select"]) . '&field=' . urlencode($key) . '&' . $unique_idf . '">' . lang('%d byte(s)', strlen($val)) . '</a>';
|
||||||
} else {
|
} else {
|
||||||
if (!strlen(trim($val, " \t"))) {
|
if (!strlen(trim($val, " \t"))) {
|
||||||
$val = " ";
|
$val = " ";
|
||||||
} elseif (intval($text_length) > 0 && preg_match('~blob|text~', $fields[$key]["type"])) {
|
} 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 {
|
} else {
|
||||||
$val = nl2br(htmlspecialchars($val));
|
$val = nl2br(htmlspecialchars($val));
|
||||||
if ($fields[$key]["type"] == "char") {
|
if ($fields[$key]["type"] == "char") {
|
||||||
|
Reference in New Issue
Block a user