From: Sergio Santoro Date: Wed, 15 Oct 2014 21:14:11 +0000 (+0200) Subject: DatabaseBase::tableName() fix limit while invoking explode() X-Git-Tag: 1.31.0-rc.0~13595^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=10dcbd67942a9a3f8e5df1695c71c4c42a6b18e6;p=lhc%2Fweb%2Fwiklou.git DatabaseBase::tableName() fix limit while invoking explode() Limit for explode() needs to be set to 3 to allow entering branch at line 2350. Change-Id: Idc2ba81a4bafa3e5511982db73a5c1549f1f9ef0 --- diff --git a/includes/db/Database.php b/includes/db/Database.php index 29642d0914..4bb646e2b2 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -2346,7 +2346,7 @@ abstract class DatabaseBase implements IDatabase, DatabaseType { # Split database and table into proper variables. # We reverse the explode so that database.table and table both output # the correct table. - $dbDetails = explode( '.', $name, 2 ); + $dbDetails = explode( '.', $name, 3 ); if ( count( $dbDetails ) == 3 ) { list( $database, $schema, $table ) = $dbDetails; # We don't want any prefix added in this case