From 213fe05330394db8db9e4363c0bf39f103b51faa Mon Sep 17 00:00:00 2001 From: Erik Bernhardson Date: Tue, 2 Jul 2013 16:38:04 -0700 Subject: [PATCH] Make wfForeignMemcKey consistent with wfMemcKey The wfMemcKey function converts any spaces in the key into _, while the wfForeignMemcKey does not. As such they would not return the same key in certain corner cases. Change-Id: I520dacdce953414dee5907324c2c98db858bcd42 --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index a44e45b553..30b36e3df2 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3384,7 +3384,7 @@ function wfForeignMemcKey( $db, $prefix /*, ... */ ) { } else { $key = $db . ':' . implode( ':', $args ); } - return $key; + return str_replace( ' ', '_', $key ); } /** -- 2.20.1