From 7bb495748a7f1ce0afc9c2af31cf156dce0cf797 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Fri, 2 Dec 2011 10:18:28 +0000 Subject: [PATCH] =?UTF-8?q?heihe=20view=E4=B8=AD=20scholar=20=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/ServiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index aec57f47..6201996d 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -1029,7 +1029,7 @@ class ServiceController extends Zend_Controller_Action $error = "无搜索结果"; } - if(preg_match_all("#<\/span>(.*)
(.+?)#im",$html,$matchs,PREG_PATTERN_ORDER)) + if(preg_match_all("!(.*)<\/span>!im",$html,$matchs,PREG_PATTERN_ORDER)) { foreach ($matchs[0] as $k=>$v){ if($k < $max) $rev[$k]['content']=utf8_encode($v);