From: garvinhicking Date: Mon, 12 Sep 2005 17:50:04 +0000 (+0000) Subject: fix max/min insertion X-Git-Tag: 0.9~149 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7a4f7e5b96053f314c67d65b4c1db8f8fa9e373c;p=s9y.git fix max/min insertion --- diff --git a/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php b/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php index d8287ed..c487e39 100644 --- a/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php +++ b/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php @@ -666,7 +666,7 @@ var $filter_defaults; $this->chars = array(2, 3, 4, 7, 9); // 1, 5, 6 and 8 may look like characters. $this->chars = array_merge($this->chars, array('A','B','C','D','E','F','H','J','K','L','M','N','P','Q','R','T','U','V','W','X','Y','Z')); // I, O, S may look like numbers - $strings = array_rand($this->chars, mt_rand($max_char, $min_char)); + $strings = array_rand($this->chars, mt_rand($min_char, $max_char)); $string = ''; foreach($strings AS $idx => $charidx) { $string .= $this->chars[$charidx];