From 2916763a5a8682dba0a1bef148f4ddde0fb42c9e Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 7 Feb 2018 20:36:35 +0000 Subject: [PATCH] lib/php/db/table.php --- lib/php/db/table.php | 2 +- www/dbq/dbq.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 1ae96a42..8bc0abf9 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -1037,7 +1037,7 @@ Class Table extends nb { // // Fields filter // - $this->fields_only($row); + $this->fields_only($row,array_keys($opt['fields'])); // // Format diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 8519e4f0..2511446d 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -251,6 +251,7 @@ class DbQ extends nb { if ($fct === null and $this->is_html) $fct = function(&$r) use ($exp) { static $i; # to detect first header line if ($i) foreach ($r as $k => $v) { + #$finfo = new finfo(FILEINFO_MIME); debug( $finfo->buffer($v) ); if ($v and preg_match("/$exp/",$k) and $this->is_base64($v)) { $r[$k] = ''; #debug($r); -- 2.47.3