kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-08-30 08:16 pm

[dw-free] /admin/sysban doesn't work

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

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

Return value of $u->priv_args must be explicitly assigned to a hash.

Patch by [personal profile] exor674.

Files modified:
  • htdocs/admin/sysban.bml
--------------------------------------------------------------------------------
diff -r 03d57001c28d -r e305fa52fc08 htdocs/admin/sysban.bml
--- a/htdocs/admin/sysban.bml	Sun Aug 30 14:36:50 2009 -0500
+++ b/htdocs/admin/sysban.bml	Sun Aug 30 15:16:04 2009 -0500
@@ -45,7 +45,8 @@ body<=
         unless $remote && $remote->has_priv( $priv );
 
     my @sysban_privs;
-    foreach my $arg ( keys $remote->priv_args( $priv ) ) {
+    my %priv_args = $remote->priv_args( $priv );
+    foreach my $arg ( keys %priv_args ) {
         if ( $arg eq '*' ) {
             push @sysban_privs, @all_sb_args;
         } else {
--------------------------------------------------------------------------------

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