From 676bea0ec68039bcd45c753ca3a89d736e67ed47 Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Sat, 19 Jan 2013 19:46:26 -0500 Subject: [PATCH] (bug 43751) Allow '+' in MySQL database names. Change-Id: I0196af1989a09d941bfcc8e52c6c9f97ea5abe95 --- includes/installer/MysqlInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/installer/MysqlInstaller.php b/includes/installer/MysqlInstaller.php index f66f15f24e..94c38c4c66 100644 --- a/includes/installer/MysqlInstaller.php +++ b/includes/installer/MysqlInstaller.php @@ -107,7 +107,7 @@ class MysqlInstaller extends DatabaseInstaller { } if ( !strlen( $newValues['wgDBname'] ) ) { $status->fatal( 'config-missing-db-name' ); - } elseif ( !preg_match( '/^[a-z0-9_-]+$/i', $newValues['wgDBname'] ) ) { + } elseif ( !preg_match( '/^[a-z0-9+_-]+$/i', $newValues['wgDBname'] ) ) { $status->fatal( 'config-invalid-db-name', $newValues['wgDBname'] ); } if ( !preg_match( '/^[a-z0-9_-]*$/i', $newValues['wgDBprefix'] ) ) { -- 2.20.1