Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8563/include
Modified Files:
Tag: branch-smarty
functions_entries.inc.php
Log Message:
make s9y work with JustBlogIT extension. You need to be logged
into your blog via cookie first, of course.
Please check for possible security exploits, I can't see anything bad.
Index: functions_entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/Attic/functions_entries.inc.php,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -d -r1.1.2.4 -r1.1.2.5
--- functions_entries.inc.php 11 Nov 2004 12:45:21 -0000 1.1.2.4
+++ functions_entries.inc.php 11 Nov 2004 13:42:58 -0000 1.1.2.5
@@ -1120,6 +1120,18 @@
}
$cat_list .= '</select>' . $n;
+ if (!empty($serendipity['GET']['title'])) {
+ $entry['title'] = utf8_decode(urldecode($serendipity['GET']['title']));
+ }
+
+ if (!empty($serendipity['GET']['body'])) {
+ $entry['body'] = utf8_decode(urldecode($serendipity['GET']['body']));
+ }
+
+ if (!empty($serendipity['GET']['url'])) {
+ $entry['body'] .= "\n" . '<br /><a href="' . htmlspecialchars(utf8_decode(urldecode($serendipity['GET']['url']))) . '">' . $entry['title'] . '</a>';
+ }
+
$hidden = '';
foreach($hiddens as $key => $value) {
$hidden .= ' <input type="hidden" name="' . $key . '" value="' . $value . '" />' . $n;
|