OSDN Git Service

get_blocklist(): should not use require() but include() here, to stop everything
authorhenoheno <henoheno>
Wed, 21 Feb 2007 14:19:58 +0000 (23:19 +0900)
committerhenoheno <henoheno>
Wed, 21 Feb 2007 14:19:58 +0000 (23:19 +0900)
spam.php
spam/spam.php

index d8e4b7b..acef763 100644 (file)
--- a/spam.php
+++ b/spam.php
@@ -1,5 +1,5 @@
 <?php
-// $Id: spam.php,v 1.119 2007/02/19 15:28:42 henoheno Exp $
+// $Id: spam.php,v 1.120 2007/02/21 14:19:58 henoheno Exp $
 // Copyright (C) 2006-2007 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
 // Functions for Concept-work of spam-uri metrics
@@ -671,7 +671,7 @@ function get_blocklist($list = '')
                $regexs = array();
                if (file_exists(SPAM_INI_FILE)) {
                        $blocklist = array();
-                       require(SPAM_INI_FILE);
+                       include(SPAM_INI_FILE);
                        //      $blocklist['badhost'] = array(
                        //              '*.blogspot.com',       // Blog services's subdomains (only)
                        //              'IANA-examples' => '#^(?:.*\.)?example\.(?:com|net|org)$#',
index d8e4b7b..acef763 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-// $Id: spam.php,v 1.119 2007/02/19 15:28:42 henoheno Exp $
+// $Id: spam.php,v 1.120 2007/02/21 14:19:58 henoheno Exp $
 // Copyright (C) 2006-2007 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
 // Functions for Concept-work of spam-uri metrics
@@ -671,7 +671,7 @@ function get_blocklist($list = '')
                $regexs = array();
                if (file_exists(SPAM_INI_FILE)) {
                        $blocklist = array();
-                       require(SPAM_INI_FILE);
+                       include(SPAM_INI_FILE);
                        //      $blocklist['badhost'] = array(
                        //              '*.blogspot.com',       // Blog services's subdomains (only)
                        //              'IANA-examples' => '#^(?:.*\.)?example\.(?:com|net|org)$#',