diff --git a/application/models/PingbackRpc.php b/application/models/PingbackRpc.php index 029f1deb..a9f9b976 100644 --- a/application/models/PingbackRpc.php +++ b/application/models/PingbackRpc.php @@ -84,6 +84,7 @@ class PingbackRpc $ret = preg_replace('/ <(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body|borrowed|from|wordpress)[^>]*>/is', ' ', $ret); $stripper = new Zend_Filter_StripTags('a', 'href'); $ret = $stripper->filter($ret); + $logger->info($ret); //保存到数据库,最多只保留一个PINGBACK? $sql="insert into comments (type,author,url,ip,content,agent,uuid) values('pingback',?,?,?,?,?,?)"; $db->query($sql,array($title,$externalURI,$ip,$ret,$agent,$uuid));