Skip to content

Commit a3a2f05

Browse files
committed
Forgot to quote
1 parent 9f3c980 commit a3a2f05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/migrations/27.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
$query = $db->query("SELECT `id` FROM `" . TABLE_PREFIX . "pages` WHERE `name` LIKE " . $db->quote('downloads') . " LIMIT 1;");
1313
if($query->rowCount() === 0) {
1414
$db->exec("INSERT INTO `myaac_pages` (`id`, `name`, `title`, `body`, `date`, `player_id`, `php`, `access`, `hide`) VALUES
15-
(null, 'downloads', 'Downloads', $downloadsPage, 0, 1, 0, 0, 0);");
15+
(null, 'downloads', 'Downloads', $db->quote($downloadsPage), 0, 1, 0, 0, 0);");
1616
}
1717

1818
$commandsPage = <<<HTML
@@ -43,5 +43,5 @@
4343
$query = $db->query("SELECT `id` FROM `" . TABLE_PREFIX . "pages` WHERE `name` LIKE " . $db->quote('commands') . " LIMIT 1;");
4444
if($query->rowCount() === 0) {
4545
$db->exec("INSERT INTO `myaac_pages` (`id`, `name`, `title`, `body`, `date`, `player_id`, `php`, `access`, `hide`) VALUES
46-
(null, 'commands', 'Commands', $commandsPage, 0, 1, 0, 0, 0);");
46+
(null, 'commands', 'Commands', $db->quote($commandsPage), 0, 1, 0, 0, 0);");
4747
}

0 commit comments

Comments
 (0)