From ca027fa17b6058cb8373d674fe95d05b120e2a73 Mon Sep 17 00:00:00 2001 From: wlx Date: Sat, 3 Dec 2011 05:48:15 +0000 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E5=88=99=E6=94=B9=E4=B8=BA=E6=87=92?= =?UTF-8?q?=E6=83=B0=E6=A8=A1=E5=BC=8F?= 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 6201996d..cfa8d44b 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);