mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
FTP 경로를 항상 끝이 '/'로 끝나도록 설정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7739 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
28038c24ec
commit
5f76461802
1 changed files with 8 additions and 1 deletions
|
|
@ -138,7 +138,14 @@
|
|||
$ftp_info->ftp_pasv = Context::get('ftp_pasv');
|
||||
if(!$ftp_info->ftp_pasv) $ftp_info->ftp_pasv = "N";
|
||||
$ftp_info->sftp = Context::get('sftp');
|
||||
$ftp_info->ftp_root_path = Context::get('ftp_root_path');
|
||||
|
||||
$ftp_root_path = Context::get('ftp_root_path');
|
||||
if (substr($ftp_root_path, strlen($ftp_root_path)-1) == "/") {
|
||||
$ftp_info->ftp_root_path = $ftp_root_path;
|
||||
} else {
|
||||
$ftp_info->ftp_root_path = $ftp_root_path.'/';
|
||||
}
|
||||
|
||||
if(ini_get('safe_mode')) {
|
||||
$ftp_info->ftp_password = Context::get('ftp_password');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue