diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-04-19 21:19:13 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-04-19 21:19:13 +0000 |
commit | a9a1396cf071aa1feecacbbeab1f010fcbb41f03 (patch) | |
tree | 34f9ef599af11ac383c597fc93e62bed0c646336 | |
parent | da7c2d94c1f8842c11862c6af07c2a8f502d8aa3 (diff) | |
download | pmwiki.svn-a9a1396cf071aa1feecacbbeab1f010fcbb41f03.tar.bz2 |
Update blocklist.php for PHP 8.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4689 524c5546-5005-0410-9a3e-e25e191bd360
-rw-r--r-- | scripts/blocklist.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/blocklist.php b/scripts/blocklist.php index 55c17e53..836ae999 100644 --- a/scripts/blocklist.php +++ b/scripts/blocklist.php @@ -1,5 +1,5 @@ <?php if (!defined('PmWiki')) exit(); -/* Copyright 2006-2021 Patrick R. Michaud (pmichaud@pobox.com) +/* Copyright 2006-2024 Patrick R. Michaud (pmichaud@pobox.com) This file is part of PmWiki; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or @@ -125,6 +125,9 @@ function Blocklist($pagename, $text) { if (!@$page['text'] || $page['time'] < $Now - $bd['refresh']) register_shutdown_function('BlocklistDownload', $pn, getcwd()); } + + if (!@$page['text']) continue; + ## If the blocklist is simply a list of regexes to be matched, load ## them into $terms['block'] and continue to the next blocklist page. |