Recent Topics

1 Oct 27, 2005 00:16    

Hi,

My colleague hit a bug with trackback in version 0.9.1. It manifests itself only when links_extrapath is off.
When b2evo sends trackback, every '&' in the source entry URL is encoded as '&' instead of '%26'. So remote sever trancates the URL at the first '&', producing URL pointing blog, instead of entry.

Possible fix would be:


Index: b2evocore/_functions_trackback.php
===================================================================
--- b2evocore/_functions_trackback.php	(revision 77)
+++ b2evocore/_functions_trackback.php	(revision 78)
@@ -62,7 +62,7 @@
 	$excerpt = urlencode($excerpt);
 	$blog_name = urlencode(get_bloginfo('name'));
 	$Item = $ItemCache->get_by_ID( $ID );
-	$url = $Item->gen_permalink();
+	$url = urlencode($Item->gen_permalink('', '', false, '&'));
 	// dis is the trackback stuff to be sent:
 	$query_string = "title=$title&url=$url&blog_name=$blog_name&excerpt=$excerpt";
 	// echo "url:$trackback_url<br>$sending:$query_string<br />";


Apparently the latest version of evocore/_trackback.funcs.php has the same problem?
--
Cheers,
Kenji

2 Nov 20, 2005 19:06

Thanks for the fix, knj.

I've just comitted it to CVS for 0.9.1 and Phoenix.


Form is loading...