From: Hypolite Petovan Date: Thu, 20 Oct 2022 13:45:40 +0000 (-0400) Subject: Fix using wrong variable in DomainPatterBlocklist::extractFromCSVFile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eaf1485c6fff9f1ee31a67e0cd43e28b3ab33f51;p=friendica.git Fix using wrong variable in DomainPatterBlocklist::extractFromCSVFile - This was clobbering the internal block list structure from an associative array to a simple list --- 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; } }