mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 02:54:28 +02:00
Don't display control characters
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@562 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -275,7 +275,7 @@ for (var i=0; <?php echo $i; ?> > i; i++) {
|
||||
foreach ($row as $key => $val) {
|
||||
if (!isset($val)) {
|
||||
$val = "<i>NULL</i>";
|
||||
} elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && preg_match('~[\\x80-\\xFF]~', $val)) {
|
||||
} elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && preg_match('~[\\0-\\x8\\xb\\xc\\xe-\\x1F\\x80-\\xFF]~', $val)) {
|
||||
$val = '<a href="' . htmlspecialchars($SELF) . 'download=' . urlencode($_GET["select"]) . '&field=' . urlencode($key) . '&' . $unique_idf . '">' . lang('%d byte(s)', strlen($val)) . '</a>';
|
||||
} else {
|
||||
if (!strlen(trim($val))) {
|
||||
|
Reference in New Issue
Block a user