We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68f685a + d9f1aad commit f2280c8Copy full SHA for f2280c8
features/bootstrap/FeatureContext.php
@@ -318,7 +318,8 @@ public function download_wp( $subdir = '' ) {
318
319
public function create_config( $subdir = '' ) {
320
$params = self::$db_settings;
321
- $params['dbprefix'] = $subdir ?: 'wp_';
+ // Replaces all characters that are not alphanumeric or an underscore into an underscore.
322
+ $params['dbprefix'] = $subdir ? preg_replace( '#[^a-zA-Z\_0-9]#', '_', $subdir ) : 'wp_';
323
324
$params['skip-salts'] = true;
325
$this->proc( 'wp core config', $params, $subdir )->run_check();
0 commit comments