From 3b17d67e9a9eaa9a34a9aa34e163b84fe27e7e3a Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 4 Mar 2009 17:09:24 +0000 Subject: [PATCH] Don't display control characters git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@562 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select.inc.php b/select.inc.php index f8fb064c..9955d20a 100644 --- a/select.inc.php +++ b/select.inc.php @@ -275,7 +275,7 @@ for (var i=0; > i; i++) { foreach ($row as $key => $val) { if (!isset($val)) { $val = "NULL"; - } 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 = '' . lang('%d byte(s)', strlen($val)) . ''; } else { if (!strlen(trim($val))) {