From 5109706a67cef21a1e28d8420921b0e7e2866663 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 4 Mar 2011 12:55:46 +0000 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=90=8E=E6=B7=BB=E5=8A=A0"/?= =?UTF-8?q?"=E7=AC=A6=E5=90=88=EF=BC=8C=E4=BB=A5=E4=BF=9D=E8=AF=81?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8=E8=83=BD?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DataController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 482ccc42..f7e0cd1a 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -687,6 +687,7 @@ class Admin_DataController extends Zend_Controller_Action if ($fpath!="") { $fdepth=substr_count($fpath,"/")+1; + if ($fdir==1) $fpath.="/"; //print $fsize." ".$fpath." ".$fdir."
"; //$sql="insert into datafile (dsid,filename,filesize,isdir,depth) values(".$dsid.",'".$this->db->escape($fpath)."',".$fsize.",".$fdir.",".$fdepth.")"; $sql="insert into datafile (dsid,filename,filesize,isdir,depth) values(?,?,?,?,?)";