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))) {