]> git.mjollnir.org Git - s9y.git/commitdiff
use rel=nofollow for captchas to be not indexed by bots
authorgarvinhicking <garvinhicking>
Wed, 22 Feb 2006 10:39:07 +0000 (10:39 +0000)
committergarvinhicking <garvinhicking>
Wed, 22 Feb 2006 10:39:07 +0000 (10:39 +0000)
plugins/serendipity_event_spamblock/serendipity_event_spamblock.php

index 75586049e0466f4f4782bbddc82d0217737a2eb1..019ed864d9fe3f006daa6a909dae127c91f51161 100644 (file)
@@ -697,7 +697,7 @@ var $filter_defaults;
                         if (!isset($serendipity['POST']['preview']) || strtolower($serendipity['POST']['captcha'] != strtolower($_SESSION['spamblock']['captcha']))) {
                             echo '<br />' . PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC . '<br />';
                             if ($use_gd) {
-                                printf('<img src="%s" title="%s" alt="CAPTCHA" class="captcha" />',
+                                printf('<img rel="nofollow" src="%s" title="%s" alt="CAPTCHA" class="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 '<div style="background-color: ' . $hexval . '">';
                                 for ($i = 1; $i <= $max_char; $i++) {
-                                    printf('<img src="%s" title="%s" alt="CAPTCHA ' . $i . '" class="captcha" />',
+                                    printf('<img rel="nofollow" src="%s" title="%s" alt="CAPTCHA ' . $i . '" class="captcha" />',
                                         $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/captcha_' . $i . '_' . md5(time()),
                                         htmlspecialchars(PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC2)
                                     );