临时添加log输出内容

This commit is contained in:
wlx 2013-01-15 10:11:33 +00:00
parent 843a212728
commit 08a08118eb
1 changed files with 1 additions and 0 deletions

View File

@ -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));