From 08a08118ebfec616c42793895d1bc253b113b010 Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 15 Jan 2013 10:11:33 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=B7=BB=E5=8A=A0log?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/PingbackRpc.php | 1 + 1 file changed, 1 insertion(+) 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));