From 74c6f01c232d514d3697bc714bfa867bdb27c4a6 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Sat, 30 Jun 2007 11:31:15 +0000 Subject: [PATCH] Encody title --- .../serendipity_plugin_history.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/serendipity_plugin_history/serendipity_plugin_history.php b/plugins/serendipity_plugin_history/serendipity_plugin_history.php index 64f1a9cd..246db044 100644 --- a/plugins/serendipity_plugin_history/serendipity_plugin_history.php +++ b/plugins/serendipity_plugin_history/serendipity_plugin_history.php @@ -22,7 +22,7 @@ class serendipity_plugin_history extends serendipity_plugin $propbag->add('description', PLUGIN_HISTORY_DESC); $propbag->add('stackable', true); $propbag->add('author', 'Jannis Hermanns'); - $propbag->add('version', '1.2'); + $propbag->add('version', '1.3'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -191,7 +191,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 $author . $date . "".$t." " . + echo $author . $date . "". htmlspecialchars($t) ." " . strip_tags($e[$x]['body']) . '
'; } echo $outro; @@ -199,4 +199,3 @@ class serendipity_plugin_history extends serendipity_plugin } /* vim: set sts=4 ts=4 expandtab : */ -?>