浏览代码

1.文件名获取bug

NoNZero 8 年之前
父节点
当前提交
267519b435
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      protected/controller/ClientController.php

+ 1 - 1
protected/controller/ClientController.php

@@ -1166,7 +1166,7 @@ class ClientController extends DooController
             if (isset($fileArray['filepath'])) {
                 $pidArray = $this->actmeasure->getRowByPmid($this->params['tenderid']);
                 $memoStr = iconv('GBK', 'UTF-8', $_POST['Memo']);
-                $fname = basename($fileArray['filename'], $fileArray['fileext']);
+                $fname = basename($fileArray['filename'], '.' . $fileArray['fileext']);
                 $filenameStr = iconv('GBK', 'UTF-8', $fname);
                 $postArray = array('ownerid' => $this->params['uid'], 'pid' => $pidArray['pid'], 'pmid' => $this->params['tenderid'], 'filename' => $filenameStr, 'filesize' => $fileArray['filesize'], 'fileext' => $fileArray['fileext'], 'filepath' => $fileArray['filepath']);
                 $iaid = $this->itemfile->insertItemFileRecord($postArray);