From 10dcbd67942a9a3f8e5df1695c71c4c42a6b18e6 Mon Sep 17 00:00:00 2001 From: Sergio Santoro Date: Wed, 15 Oct 2014 23:14:11 +0200 Subject: [PATCH] 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 --- includes/db/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1