Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24528
Modified Files:
Tag: branch-smarty
comment.php
Log Message:
MFH
Index: comment.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/comment.php,v
retrieving revision 1.44
retrieving revision 1.44.2.1
diff -u -d -r1.44 -r1.44.2.1
--- comment.php 24 Aug 2004 17:32:45 -0000 1.44
+++ comment.php 14 Sep 2004 10:31:56 -0000 1.44.2.1
@@ -106,8 +106,8 @@
} else if (!isset($serendipity['POST']['submit'])) {
echo $html_header;
if ($serendipity['GET']['type'] == 'trackbacks') {
- $tbu = $serendipity['baseURL'] . 'comment.php?type=trackback&entry_id=' . $serendipity['GET']['entry_id'];
- $query = 'SELECT title FROM ' . $serendipity['dbPrefix'] . 'entries WHERE id = ' . $serendipity['GET']['entry_id'];
+ $tbu = $serendipity['baseURL'] . 'comment.php?type=trackback&entry_id=' . (int)$serendipity['GET']['entry_id'];
+ $query = "SELECT title FROM {$serendipity['dbPrefix']}entries WHERE id = '". (int)$serendipity['GET']['entry_id'] ."'";
$entry = serendipity_db_query($query);
$entry = serendipity_archiveURL($serendipity['GET']['entry_id'], $entry[0]['title'], 'baseURL');
?>
|