From a3a2f05783f2045473ce08fdf4b56f5fabe10e67 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 28 Jan 2024 18:26:03 +0100 Subject: [PATCH] Forgot to quote --- system/migrations/27.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/migrations/27.php b/system/migrations/27.php index f6d72932..f1966b88 100644 --- a/system/migrations/27.php +++ b/system/migrations/27.php @@ -12,7 +12,7 @@ HTML; $query = $db->query("SELECT `id` FROM `" . TABLE_PREFIX . "pages` WHERE `name` LIKE " . $db->quote('downloads') . " LIMIT 1;"); if($query->rowCount() === 0) { $db->exec("INSERT INTO `myaac_pages` (`id`, `name`, `title`, `body`, `date`, `player_id`, `php`, `access`, `hide`) VALUES - (null, 'downloads', 'Downloads', $downloadsPage, 0, 1, 0, 0, 0);"); + (null, 'downloads', 'Downloads', $db->quote($downloadsPage), 0, 1, 0, 0, 0);"); } $commandsPage = <<query("SELECT `id` FROM `" . TABLE_PREFIX . "pages` WHERE `name` LIKE " . $db->quote('commands') . " LIMIT 1;"); if($query->rowCount() === 0) { $db->exec("INSERT INTO `myaac_pages` (`id`, `name`, `title`, `body`, `date`, `player_id`, `php`, `access`, `hide`) VALUES -(null, 'commands', 'Commands', $commandsPage, 0, 1, 0, 0, 0);"); +(null, 'commands', 'Commands', $db->quote($commandsPage), 0, 1, 0, 0, 0);"); }