OSDN Git Service

v1.3.1
authorhsur <hsur@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 9 Jun 2008 10:33:40 +0000 (10:33 +0000)
committerhsur <hsur@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Mon, 9 Jun 2008 10:33:40 +0000 (10:33 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@628 1ca29b6e-896d-4ea0-84a5-967f57386b96

trunk/NP_Blacklist/NP_Blacklist.php
trunk/NP_Blacklist/blacklist/blacklist_lib.php
trunk/NP_Blacklist/blacklist/help.html

index bc3fade..9e15531 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 
 /**
-  * NP_Blacklist(JP) ($Revision: 1.13 $)
+  * NP_Blacklist(JP) ($Revision: 1.14 $)
   * by hsur ( http://blog.cles.jp/np_cles )
-  * $Id: NP_Blacklist.php,v 1.13 2008-05-04 00:41:54 hsur Exp $
+  * $Id: NP_Blacklist.php,v 1.14 2008-06-09 10:33:40 hsur Exp $
   *
   * Based on NP_Blacklist 0.98
   * by xiffy
@@ -41,10 +41,10 @@ class NP_Blacklist extends NucleusPlugin {
                return 'http://blog.cles.jp/np_cles/category/31/subcatid/11';
        }
        function getVersion() {
-               return '1.3';
+               return '1.3.1';
        }
        function getDescription() {
-               return '[$Revision: 1.13 $]<br />'.NP_BLACKLIST_description;
+               return '[$Revision: 1.14 $]<br />'.NP_BLACKLIST_description;
        }
        function supportsFeature($what) {
                switch ($what) {
index 8bfc455..5f8661f 100644 (file)
@@ -19,7 +19,7 @@
 //
 // Modified by hsur
 // http://blog.cles.jp
-// $Id: blacklist_lib.php,v 1.12 2008-05-04 00:41:54 hsur Exp $
+// $Id: blacklist_lib.php,v 1.13 2008-06-09 10:33:40 hsur Exp $
 
 define('__WEBLOG_ROOT', dirname(dirname(realpath(__FILE__))));
 define('__EXT', '/blacklist');
@@ -358,7 +358,7 @@ function check_for_iprbl() {
        list ($a, $b, $c, $d) = explode('.', $spammer_ip);
 
        foreach ($iprbl as $rbl) {
-               if (strpos(gethostbyname("$d.$c.$b.$a.$rbl"), '127.') === 0) {
+               if ( gethostbynamel("$d.$c.$b.$a.$rbl") !== false ) {
                        return array ($rbl, $spammer_ip);
                }
        }
@@ -380,7 +380,7 @@ function check_for_domainrbl($comment_text) {
                foreach ($domainrbl as $rbl) {
                        if (strlen($domain_to_test) > 3) {
                                //pbl_log('DNSBL Lookup: ' . $domain_to_test.'.'.$rbl);
-                               if (strpos(gethostbyname($domain_to_test.'.'.$rbl), '127.') === 0) {
+                               if ( gethostbynamel("$domain_to_test.$rbl") !== false ) {
                                        return array ($rbl, $domain_to_test);
                                }
                        }
index ea77cc6..17f9409 100644 (file)
@@ -4,6 +4,7 @@
        <li> [Added] ログ消去時などに確認ダイアログが出るようにした。</li>
        <li> [Added] 動作確認フォームを追加。</li>
        <li> [Fixed] bulkfeedsが消滅したので関連機能を全て削除した。</li>
+       <li> [Fixed] 127.で始まるIPを誤判定をする問題に対応(2008/06/09)</li>
 </ul>
 
 <ul>