dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3cec71
)
(bug 43751) Allow '+' in MySQL database names.
author
Victor Vasiliev
<vasilvv@gmail.com>
Sun, 20 Jan 2013 00:46:26 +0000
(19:46 -0500)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 25 Jan 2013 22:42:16 +0000
(22:42 +0000)
Change-Id: I0196af1989a09d941bfcc8e52c6c9f97ea5abe95
includes/installer/MysqlInstaller.php
patch
|
blob
|
history
diff --git
a/includes/installer/MysqlInstaller.php
b/includes/installer/MysqlInstaller.php
index
f66f15f
..
94c38c4
100644
(file)
--- 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'] ) ) {