[pLog-svn] r3587 - plog/trunk/class/net
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Jun 16 17:46:11 GMT 2006
Author: oscar
Date: 2006-06-16 17:46:10 +0000 (Fri, 16 Jun 2006)
New Revision: 3587
Modified:
plog/trunk/class/net/baserequestgenerator.class.php
Log:
fixed issue 956 (http://bugs.lifetype.net/view.php?id=956) - trackback information breaking the page when -- is used in the post topic/slug
Modified: plog/trunk/class/net/baserequestgenerator.class.php
===================================================================
--- plog/trunk/class/net/baserequestgenerator.class.php 2006-06-16 02:21:49 UTC (rev 3586)
+++ plog/trunk/class/net/baserequestgenerator.class.php 2006-06-16 17:46:10 UTC (rev 3587)
@@ -404,10 +404,12 @@
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">';
$trackbackLink = $this->getTrackbackUrl()."?id=".$post->getId();
+ $postLink = str_replace('-', '%2D', $this->postLink($post));
+ $topic = str_replace('-', '\-', $post->getTopic());
$rdfBody = "<rdf:Description
- rdf:about=\"".$this->postLink($post)."\"
- dc:identifier=\"".$this->postLink($post)."\"
- dc:title=\"".$post->getTopic()."\"
+ rdf:about=\"".$postLink."\"
+ dc:identifier=\"".$postLink."\"
+ dc:title=\"".$topic."\"
trackback:ping=\"".$trackbackLink."\"/>";
$rdfFooter = "</rdf:RDF>";
More information about the pLog-svn
mailing list