$this->random_string($max_char, $min_char);
echo '<div style="background-color: ' . $hexval . '">';
for ($i = 1; $i <= $max_char; $i++) {
- printf('<img rel="nofollow" src="%s" title="%s" alt="CAPTCHA ' . $i . '" class="captcha" />',
+ printf('<img 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)
);
$propbag->add('description', PLUGIN_EVENT_TRACKBACK_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Serendipity Team');
- $propbag->add('version', '1.6');
+ $propbag->add('version', '1.7');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
'_id',
$this->links[$url],
($entry_id != 0) ? '&entry_id=' . $entry_id : '',
- (!$is_title ? $url : ''),
- (!$is_over ? $url : ''),
+ (!$is_title ? htmlspecialchars($url) : ''),
+ (!$is_over ? htmlspecialchars($url) : ''),
$buffer[6]
);
} else {
'',
base64_encode($url),
($entry_id != 0) ? '&entry_id=' . $entry_id : '',
- (!$is_title ? $url : ''),
- (!$is_over ? $url : ''),
+ (!$is_title ? htmlspecialchars($url) : ''),
+ (!$is_over ? htmlspecialchars($url) : ''),
$buffer[6]
);
}