[pLog-svn] r2754 - plog/branches/lifetype-1.0.3/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Thu Jan 5 07:09:00 GMT 2006
Author: mark
Date: 2006-01-05 07:08:59 +0000 (Thu, 05 Jan 2006)
New Revision: 2754
Modified:
plog/branches/lifetype-1.0.3/class/dao/trackbackclient.class.php
Log:
Resolved the feature request http://bugs.lifetype.net/view.php?id=792. Now we will remove all html tags before send out trackback.
Modified: plog/branches/lifetype-1.0.3/class/dao/trackbackclient.class.php
===================================================================
--- plog/branches/lifetype-1.0.3/class/dao/trackbackclient.class.php 2006-01-04 23:26:47 UTC (rev 2753)
+++ plog/branches/lifetype-1.0.3/class/dao/trackbackclient.class.php 2006-01-05 07:08:59 UTC (rev 2754)
@@ -4,6 +4,7 @@
include_once( PLOG_CLASS_PATH."class/dao/article.class.php" );
include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
include_once( PLOG_CLASS_PATH."class/net/requestgenerator.class.php" );
+ include_once( PLOG_CLASS_PATH."class/data/textfilter.class.php" );
define( "TRACKBACK_SUCCESS", 0 );
define( "TRACKBACK_FAILED", 1 );
@@ -128,7 +129,7 @@
$t =& RequestGenerator::getRequestGenerator( $blogInfo );
$formvars["title"] = $article->getTopic();
// according to MT's implementation, the excerpt should not be longer than 255 characters.
- $formvars["excerpt"] = substr( $article->getText(), 0, 252 )."...";
+ $formvars["excerpt"] = substr( Textfilter::filterAllHTML( $article->getText() ), 0, 252 )."...";
$formvars["url"] = $t->postPermalink( $article );
$formvars["blog_name"] = $blogInfo->getBlog();
More information about the pLog-svn
mailing list