mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
#18628259 : store ftp_password in session only when authentication succeeds
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7207 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4c1fa0a568
commit
c1610d359d
2 changed files with 2 additions and 1 deletions
|
|
@ -118,7 +118,6 @@
|
|||
if(!$_SESSION['ftp_password'])
|
||||
{
|
||||
$ftp_password = Context::get('ftp_password');
|
||||
if($ftp_password) $_SESSION['ftp_password'] = $ftp_password;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -124,6 +124,7 @@
|
|||
{
|
||||
return new Object(-1,'msg_ftp_invalid_auth_info');
|
||||
}
|
||||
$_SESSION['ftp_password'] = $this->ftp_password;
|
||||
|
||||
$sftp = ssh2_sftp($connection);
|
||||
|
||||
|
|
@ -176,6 +177,7 @@
|
|||
$oFtp->ftp_quit();
|
||||
return new Object(-1,'msg_ftp_invalid_auth_info');
|
||||
}
|
||||
$_SESSION['ftp_password'] = $this->ftp_password;
|
||||
|
||||
$_list = $oFtp->ftp_rawlist($ftp_info->ftp_root_path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue