Skip to content

Commit 79bf13f

Browse files
committed
Quote all identifiers in the configurator class
1 parent e94d763 commit 79bf13f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

wp-includes/sqlite-ast/class-wp-sqlite-configurator.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ private function ensure_global_variables_table(): void {
123123
$this->driver->execute_sqlite_query(
124124
sprintf(
125125
'CREATE TABLE IF NOT EXISTS %s (name TEXT PRIMARY KEY, value TEXT)',
126-
WP_SQLite_Driver::GLOBAL_VARIABLES_TABLE_NAME
126+
$this->driver->get_connection()->quote_identifier(
127+
WP_SQLite_Driver::GLOBAL_VARIABLES_TABLE_NAME
128+
)
127129
)
128130
);
129131
}
@@ -174,7 +176,9 @@ private function save_current_driver_version(): void {
174176
$this->driver->execute_sqlite_query(
175177
sprintf(
176178
'INSERT INTO %s (name, value) VALUES (?, ?) ON CONFLICT(name) DO UPDATE SET value = ?',
177-
WP_SQLite_Driver::GLOBAL_VARIABLES_TABLE_NAME
179+
$this->driver->get_connection()->quote_identifier(
180+
WP_SQLite_Driver::GLOBAL_VARIABLES_TABLE_NAME
181+
)
178182
),
179183
array(
180184
WP_SQLite_Driver::DRIVER_VERSION_VARIABLE_NAME,

0 commit comments

Comments
 (0)