禁止小文件代理功能
This commit is contained in:
parent
a9de3ae4a7
commit
6249d1b4ca
|
@ -1043,7 +1043,7 @@ class DataController extends Zend_Controller_Action
|
||||||
//判断FTP URL是否附带了用户名和密码
|
//判断FTP URL是否附带了用户名和密码
|
||||||
if ($p['host']=='ftp.westgis.ac.cn')
|
if ($p['host']=='ftp.westgis.ac.cn')
|
||||||
$url='ftp://'.$this->view->config->ftp->user.':'.$this->view->config->ftp->password.'@ftp.westgis.ac.cn'.$p['path'];
|
$url='ftp://'.$this->view->config->ftp->user.':'.$this->view->config->ftp->password.'@ftp.westgis.ac.cn'.$p['path'];
|
||||||
if (!$bigfile &&is_file($url) && file_exists($url))
|
/*if (!$bigfile &&is_file($url) && file_exists($url))
|
||||||
{
|
{
|
||||||
$this->_helper->layout->disableLayout();
|
$this->_helper->layout->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
|
@ -1059,7 +1059,7 @@ class DataController extends Zend_Controller_Action
|
||||||
->setHeader('Cache-Control','must-revalidate, post-check=0, pre-check=0')
|
->setHeader('Cache-Control','must-revalidate, post-check=0, pre-check=0')
|
||||||
->setHeader('Pragma','public')
|
->setHeader('Pragma','public')
|
||||||
->setBody($content);
|
->setBody($content);
|
||||||
} else {
|
} else */{
|
||||||
//是一个FTP,返回用户名称和密码说明
|
//是一个FTP,返回用户名称和密码说明
|
||||||
if ($p['host']=='ftp.westgis.ac.cn')
|
if ($p['host']=='ftp.westgis.ac.cn')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue