Escaping group name.
authorJavier Bassi <profetasdelmetal@gmail.com>
Wed, 19 Oct 2011 02:18:32 +0000 (00:18 -0200)
committerJavier Bassi <profetasdelmetal@gmail.com>
Wed, 19 Oct 2011 02:18:32 +0000 (00:18 -0200)
useradmin/edit_user.cgi

index 5aaf413..a85ed12 100755 (executable)
@@ -452,7 +452,7 @@ if ($config{'secmode'} == 0) {
        foreach $g (@glist) {
                next if (!&can_use_group(\%access, $g->{'group'}) &&
                         !$ingroups{$g->{'group'}});
-               push(@canglist, [ $g->{'group'}, $g->{'group'} ]);
+               push(@canglist, [ $g->{'group'}, &html_escape($g->{'group'}) ]);
                }
        @ingroups = map { [ $_, $_ ] } sort { $a cmp $b }
                        grep { $ingroups{$_} } (keys %ingroups);