Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv9018
Modified Files:
comment.php NEWS
Log Message:
tracback pings are now accepted via POST/GET methods to aid moveable type
trackbacks.
Index: comment.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/comment.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- comment.php 16 Aug 2003 11:05:48 -0000 1.21
+++ comment.php 25 Aug 2003 13:11:06 -0000 1.22
@@ -20,26 +20,26 @@
}
-if (!($type = @$_GET['type'])) {
+if (!($type = @$_REQUEST['type'])) {
$type = 'normal';
}
if ($type == 'trackback') {
$uri = $_SERVER['REQUEST_URI'];
- if (isset($_GET['entry_id'])) {
- $id = $_GET['entry_id'];
+ if (isset($_REQUEST['entry_id'])) {
+ $id = $_REQUEST['entry_id'];
} else if (preg_match('@\/(\d+)$@', $uri, $matches)) {
$id = $matches[1];
}
- if (add_trackback($id, $_POST['title'], $_POST['url'],
- $_POST['blog_name'], $_POST['excerpt'])) {
+ if (add_trackback($id, $_REQUEST['title'], $_REQUEST['url'],
+ $_REQUEST['blog_name'], $_REQUEST['excerpt'])) {
report_trackback_success();
} else {
report_trackback_failure();
}
} else if ($type == 'pingback') {
- if(add_pingback($_POST['entry_id'], $HTTP_RAW_POST_DATA)) {
+ if(add_pingback($_REQUEST['entry_id'], $HTTP_RAW_POST_DATA)) {
report_pingback_success();
} else {
report_pingback_failure();
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- NEWS 17 Aug 2003 23:36:24 -0000 1.15
+++ NEWS 25 Aug 2003 13:11:06 -0000 1.16
@@ -2,6 +2,7 @@
Version 0.3 ()
------------------------------------
+ * Trackback pings where only accepted on a POST method. Moveable Type uses GET, so we now accept both. (garvinhicking)
* Fixed issue where trackbackpings were only sent to links in extended entry, if one existed, discarding the standard body (garvinhicking)
* Fixed issue where two users sharing same username & password would not be able to log in correctly, causing errors on the admin pages (tomsommer)
* Fixed issue where installation would execute SQL instructions even if a table already existed, creating "ghost"-authors (tomsommer)
|