临时添加log输出内容
This commit is contained in:
parent
843a212728
commit
08a08118eb
|
@ -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);
|
$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');
|
$stripper = new Zend_Filter_StripTags('a', 'href');
|
||||||
$ret = $stripper->filter($ret);
|
$ret = $stripper->filter($ret);
|
||||||
|
$logger->info($ret);
|
||||||
//保存到数据库,最多只保留一个PINGBACK?
|
//保存到数据库,最多只保留一个PINGBACK?
|
||||||
$sql="insert into comments (type,author,url,ip,content,agent,uuid) values('pingback',?,?,?,?,?,?)";
|
$sql="insert into comments (type,author,url,ip,content,agent,uuid) values('pingback',?,?,?,?,?,?)";
|
||||||
$db->query($sql,array($title,$externalURI,$ip,$ret,$agent,$uuid));
|
$db->query($sql,array($title,$externalURI,$ip,$ret,$agent,$uuid));
|
||||||
|
|
Loading…
Reference in New Issue