Skip to content

Commit eec9530

Browse files
committed
try quoting
1 parent 025e560 commit eec9530

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DB_Command_SQLite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ protected function sqlite_import( $file, $assoc_args ) {
474474
);
475475

476476
// Pass the .read dot-command as a single quoted argument (sqlite3 reads it as SQL input).
477-
$command .= ' ' . escapeshellarg( '.read ' . $import_file );
477+
$command .= ' ' . escapeshellarg( ".read '" . $import_file . "'" );
478478

479479
WP_CLI::debug( "Running shell command: {$command}", 'db' );
480480

0 commit comments

Comments
 (0)