Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4165
Modified Files:
serendipity_functions.inc.php
Log Message:
trackback autodiscovery now uses the parsed and corrected, fragment-stripped
version of the entered URL to check for trackback matching.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.350
retrieving revision 1.351
diff -u -d -r1.350 -r1.351
--- serendipity_functions.inc.php 20 Jul 2004 09:54:45 -0000 1.350
+++ serendipity_functions.inc.php 20 Jul 2004 10:19:22 -0000 1.351
@@ -2222,12 +2222,16 @@
if (empty($u['port'])) {
$u['port'] = 80;
+ $port = '';
+ } else {
+ $port = ':' . $u['port'];
}
if (!empty($u['query'])) {
$u['path'] .= '?' . $u['query'];
}
+ $parsed_loc = $u['scheme'] . '://' . $u['host'] . $port . $u['path'];
$res = '';
$fp = fsockopen($u['host'], $u['port'], $err, $timeout);
if ($fp) {
@@ -2250,7 +2254,7 @@
}
if (strlen($res) != 0) {
- serendipity_trackback_autodiscover($res, $loc, $url, $author, $title, $text);
+ serendipity_trackback_autodiscover($res, $parsed_loc, $url, $author, $title, $text);
serendipity_pingback_autodiscover($loc, $res);
} else {
echo TRACKBACK_NO_DATA . '<br />';
|