Fixed small bug in history plugin which emitted invalid HTML.
This commit is contained in:
@ -195,7 +195,7 @@ class serendipity_plugin_history extends serendipity_plugin
|
|||||||
$t = ($maxlength==0 || strlen($e[$x]['title'])<=$maxlength) ?
|
$t = ($maxlength==0 || strlen($e[$x]['title'])<=$maxlength) ?
|
||||||
$e[$x]['title'] :
|
$e[$x]['title'] :
|
||||||
(trim(serendipity_mb('substr', $e[$x]['title'], 0, $maxlength-3)).' [...]');
|
(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 '<div class="serendipity_history_body">' . strip_tags($e[$x]['body']) . '</div>';
|
||||||
}
|
}
|
||||||
echo (empty($outro)) ? '' : '<div class="serendipity_history_outro">' . $outro . '</div>';
|
echo (empty($outro)) ? '' : '<div class="serendipity_history_outro">' . $outro . '</div>';
|
||||||
|
Reference in New Issue
Block a user