From: garvinhicking Date: Wed, 22 Feb 2006 10:39:07 +0000 (+0000) Subject: use rel=nofollow for captchas to be not indexed by bots X-Git-Tag: 1.0~82 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aff84071dfa1cc5e463622eab026d1cf35f88e72;p=s9y.git use rel=nofollow for captchas to be not indexed by bots --- diff --git a/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php b/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php index 7558604..019ed86 100644 --- a/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php +++ b/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php @@ -697,7 +697,7 @@ var $filter_defaults; if (!isset($serendipity['POST']['preview']) || strtolower($serendipity['POST']['captcha'] != strtolower($_SESSION['spamblock']['captcha']))) { echo '
' . PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC . '
'; if ($use_gd) { - printf('CAPTCHA', + printf('CAPTCHA', $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/captcha_' . md5(time()), htmlspecialchars(PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC2) ); @@ -707,7 +707,7 @@ var $filter_defaults; $this->random_string($max_char, $min_char); echo '
'; for ($i = 1; $i <= $max_char; $i++) { - printf('CAPTCHA ' . $i . '', + printf('CAPTCHA ' . $i . '', $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/captcha_' . $i . '_' . md5(time()), htmlspecialchars(PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC2) );