Fixed small bug in history plugin which emitted invalid HTML.

This commit is contained in:
Matthias Mees 2009-02-02 11:37:41 +00:00
parent 640f17c7e3
commit 6871d8c01a

View File

@ -195,7 +195,7 @@ class serendipity_plugin_history extends serendipity_plugin
$t = ($maxlength==0 || strlen($e[$x]['title'])<=$maxlength) ?
$e[$x]['title'] :
(trim(serendipity_mb('substr', $e[$x]['title'], 0, $maxlength-3)).' [...]');
echo "<a href=" . $url . " title='".str_replace("'", "`", htmlspecialchars($e[$x]['title']))."'>". htmlspecialchars($t) . "</a></div>";
echo '<a href="' . $url . '" title="' . str_replace("'", "`", htmlspecialchars($e[$x]['title'])) . '">"' . htmlspecialchars($t) . '"</a></div>"';
echo '<div class="serendipity_history_body">' . strip_tags($e[$x]['body']) . '</div>';
}
echo (empty($outro)) ? '' : '<div class="serendipity_history_outro">' . $outro . '</div>';