Update of /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_recententries
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16673/plugins/serendipity_plugin_recententries
Modified Files:
Tag: branch_0_6
serendipity_plugin_recententries.php
Log Message:
Use Content-Type headers for all pages (including admin area).
Use htmlspecialchars() instead of htmlentities() to not encode native characters.
Index: serendipity_plugin_recententries.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -u -d -r1.4 -r1.4.4.1
--- serendipity_plugin_recententries.php 3 Apr 2004 17:36:19 -0000 1.4
+++ serendipity_plugin_recententries.php 7 Apr 2004 12:38:19 -0000 1.4.4.1
@@ -80,9 +80,9 @@
'serendipityHTTPPath'
);
- echo '<a href="' . $entryLink . '" title="' . htmlentities($entry['title']) . '">' . $entry['title'] . '</a><br />'
+ echo '<a href="' . $entryLink . '" title="' . htmlspecialchars($entry['title']) . '">' . $entry['title'] . '</a><br />'
. '<div class="serendipitySideBarDate">'
- . htmlentities(strftime($dateformat, $entry['timestamp']))
+ . htmlspecialchars(strftime($dateformat, $entry['timestamp']))
. '</div><br />';
}
}
|