More bugs! Why did I only spot these after commit >:|
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 22 Nov 2006 23:32:21 +0000 (23:32 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 22 Nov 2006 23:32:21 +0000 (23:32 +0000)
includes/Block.php
includes/IP.php

index 404e574..8dbf127 100644 (file)
@@ -504,8 +504,8 @@ class Block
                        wfDebug("Checking $wlEntry\n");
 
                        # Is the IP in this range?
-                       if (IP::isAddressInRange( $autoblockip, $wlEntry )) {
-                               wfDebug("IP $autoblockip matches $wlEntry, not autoblocking\n");
+                       if (IP::isAddressInRange( $ip, $wlEntry )) {
+                               wfDebug("IP $ip matches $wlEntry, not autoblocking\n");
                                return true; #This /SHOULD/ introduce a dummy block - but
                                        # I don't know a safe way to do so. -werdna
                        }
index d6b8704..6251ad8 100644 (file)
@@ -218,8 +218,8 @@ class IP {
        }
 
        /**
-        * Determine if a given integer IPv4 address is in a given range
-        * @param int    $addr
+        * Determine if a given IPv4 address is in a given range
+        * @param string $addr  Dotted quad
         * @param string $range (CIDR, hyphenated dotted-quad, or single dotted-quad)
         * @return bool Whether or not the given address is in the given range. Returns false on error.
         */