Update Saqel Platform: 2026-09-08 13:59:41

This commit is contained in:
Hamza-Ayed
2026-09-08 13:59:41 +03:00
parent 10f885b2f1
commit 9e3750692e
+5 -1
View File
@@ -93,7 +93,11 @@ class SaqelEcosystemTester
$pdo = Database::getConnection();
$this->assert($pdo instanceof \PDO, 'الاتصال بقاعدة البيانات PDO نشط ومستقر');
foreach ($tables as $tbl) {
$check = Database::selectOne("SHOW TABLES LIKE ?", [$tbl]);
// MySQL does not accept PDO placeholders in SHOW TABLES LIKE.
// Table names come from this fixed internal allow-list, so quote
// the value explicitly rather than interpolating user input.
$safeTable = str_replace('`', '``', (string) $tbl);
$check = Database::selectOne("SHOW TABLES LIKE '" . addslashes($safeTable) . "'");
$this->assert(!empty($check), "جدول $tbl متوفر في قاعدة البيانات");
}
} catch (\Throwable $e) {