From 198467709c031c52fb9143995e325bcbf67eed52 Mon Sep 17 00:00:00 2001
From: Maurício Meneghini Fauth <mauricio@mfauth.net>
Date: Tue, 15 Oct 2024 12:27:22 -0300
Subject: Fix unescaped table name when checking tables
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
---
 libraries/classes/Table/Maintenance.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libraries/classes/Table/Maintenance.php b/libraries/classes/Table/Maintenance.php
index 97c3423e91..2a2596c2bd 100644
--- a/libraries/classes/Table/Maintenance.php
+++ b/libraries/classes/Table/Maintenance.php
@@ -13,6 +13,7 @@
 use PhpMyAdmin\Util;
 
 use function __;
+use function htmlspecialchars;
 use function implode;
 use function sprintf;
 
@@ -119,7 +120,7 @@ public function getIndexesProblems(DatabaseName $db, array $tables): string
                 continue;
             }
 
-            $indexesProblems .= sprintf(__('Problems with indexes of table `%s`'), $table->getName());
+            $indexesProblems .= htmlspecialchars(sprintf(__('Problems with indexes of table `%s`'), $table->getName()));
             $indexesProblems .= $check;
         }
 
-- 
2.30.2

