From eaf1485c6fff9f1ee31a67e0cd43e28b3ab33f51 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 20 Oct 2022 09:45:40 -0400 Subject: [PATCH] Fix using wrong variable in DomainPatterBlocklist::extractFromCSVFile - This was clobbering the internal block list structure from an associative array to a simple list --- src/Moderation/DomainPatternBlocklist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Moderation/DomainPatternBlocklist.php b/src/Moderation/DomainPatternBlocklist.php index 923fca88f0..96177b48d9 100644 --- a/src/Moderation/DomainPatternBlocklist.php +++ b/src/Moderation/DomainPatternBlocklist.php @@ -192,7 +192,7 @@ class DomainPatternBlocklist 'reason' => $data[1] ?? '', ]; if (!in_array($item, $blocklist)) { - $blocklist[] = $data; + $blocklist[] = $item; } }