]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/CGI.pm
add news item for ikiwiki 3.20101201
[git.ikiwiki.info.git] / IkiWiki / CGI.pm
index 28020b500c830bafc52cf49c3ba75bc5dfca1ce4..f2a32a9581077553d5b542fde40f428c15a5e41a 100644 (file)
@@ -283,7 +283,7 @@ sub check_banned ($$) {
 
        foreach my $b (@{$config{banned_users}}) {
                if (pagespec_match("", $b,
-                       ip => $ENV{REMOTE_ADDR},
+                       ip => $session->remote_addr(),
                        name => defined $name ? $name : "",
                )) {
                        $banned=1;