From 4cdc73d18c51cd10f7ec2b99d09e1c2e7bff2dde Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 3 Dec 2007 16:19:47 +0000 Subject: [PATCH] People keep sticking raw user_text fields into LinkBatch::add(), so let's go ahead and convert the spaces so they'll actually work right. Sigh. --- includes/LinkBatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/LinkBatch.php b/includes/LinkBatch.php index 20bcd3d44e..db1114c938 100644 --- a/includes/LinkBatch.php +++ b/includes/LinkBatch.php @@ -34,7 +34,7 @@ class LinkBatch { $this->data[$ns] = array(); } - $this->data[$ns][$dbkey] = 1; + $this->data[$ns][str_replace( ' ', '_', $dbkey )] = 1; } /** -- 2.20.1