]> git.mxchange.org Git - friendica.git/commitdiff
Fix using wrong variable in DomainPatterBlocklist::extractFromCSVFile
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 20 Oct 2022 13:45:40 +0000 (09:45 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 20 Oct 2022 13:45:40 +0000 (09:45 -0400)
- This was clobbering the internal block list structure from an associative array to a simple list

src/Moderation/DomainPatternBlocklist.php

index 923fca88f03740f24c7bb35664b4406031a781c7..96177b48d9f1ddc3bc17aeefea272d6b0afaa07b 100644 (file)
@@ -192,7 +192,7 @@ class DomainPatternBlocklist
                                'reason' => $data[1] ?? '',
                        ];
                        if (!in_array($item, $blocklist)) {
-                               $blocklist[] = $data;
+                               $blocklist[] = $item;
                        }
                }