From 43fd19b79ea63798a5dfc10f8cd5c97fff54edbb Mon Sep 17 00:00:00 2001 From: William Desportes Date: Thu, 9 Apr 2026 17:06:06 +0200 Subject: [PATCH] Fix #20275 - TOON export should use the normal user Pull-request: #20175 Signed-off-by: William Desportes --- src/Plugins/Export/ExportToon.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plugins/Export/ExportToon.php b/src/Plugins/Export/ExportToon.php index cc67c66042..0d4be03366 100644 --- a/src/Plugins/Export/ExportToon.php +++ b/src/Plugins/Export/ExportToon.php @@ -8,6 +8,7 @@ declare(strict_types=1); namespace PhpMyAdmin\Plugins\Export; use PhpMyAdmin\Config\Settings\Export; +use PhpMyAdmin\Dbal\ConnectionType; use PhpMyAdmin\Export\StructureOrData; use PhpMyAdmin\Http\ServerRequest; use PhpMyAdmin\Plugins\ExportPlugin; @@ -95,7 +96,7 @@ class ExportToon extends ExportPlugin $dbAlias = $this->getDbAlias($aliases, $db); $tableAlias = $this->getTableAlias($aliases, $db, $table); // use buffered query to get $rowsCnt - $result = $this->dbi->queryAsControlUser($sqlQuery); + $result = $this->dbi->query($sqlQuery, ConnectionType::User, unbuffered: false); $columnsCnt = $result->numFields(); $rowsCnt = $result->numRows();