afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-27 12:52 pm

[dw-free] Enable talk_ip_test banning from spamreports view

[commit: http://hg.dwscoalition.org/dw-free/rev/24d531b41e6a]

http://bugs.dwscoalition.org/show_bug.cgi?id=1316

Fix form.

Patch by [staff profile] denise.

Files modified:
  • htdocs/admin/spamreports.bml
--------------------------------------------------------------------------------
diff -r b7d930ef3c1c -r 24d531b41e6a htdocs/admin/spamreports.bml
--- a/htdocs/admin/spamreports.bml	Sat Jun 27 11:55:41 2009 +0000
+++ b/htdocs/admin/spamreports.bml	Sat Jun 27 12:51:08 2009 +0000
@@ -233,8 +233,7 @@
         $in = "'$in'";
 
         if ($POST{'sysban_ip'} && !LJ::sysban_validate("talk_ip_test", $POST{'sysban_ip'})) {
-            LJ::sysban_create('what' => 'talk_ip_test', value => $POST{'sysban_ip'},
-                              'banlength' => 0, note => "anonymous spamreports");
+            LJ::sysban_create('what' => 'talk_ip_test', 'value' => $POST{'sysban_ip'}, 'bandays' => 0, 'note' => 'anonymous spamreports');
         }
 
         $count = $dbh->do("UPDATE spamreports SET state='closed' WHERE srid IN($in) AND state='open'");
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org