Changeset 760
- Timestamp:
- 08/20/07 11:28:19
(1 year ago)
- Author:
- gnif
- Message:
Fixed FTP edit account path does not exist bug
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r757 |
r760 |
|
| 12 | 12 | * Changed the default site (ispcp) to listen on port 3400 |
|---|
| 13 | 13 | * Added ssl support on port 3400 if mod_ssl is loaded |
|---|
| | 14 | - GUI: |
|---|
| | 15 | * Fixed edit FTP account directory does not exist bug |
|---|
| 14 | 16 | |
|---|
| 15 | 17 | 2007-08-20 Geoffrey McRae |
|---|
| r731 |
r760 |
|
| 92 | 92 | if (isset($_POST['use_other_dir']) && $_POST['use_other_dir'] === 'on') { |
|---|
| 93 | 93 | $other_dir = $cfg['FTP_HOMEDIR'] . "/" . $_SESSION['user_logged'] . clean_input($_POST['other_dir']); |
|---|
| 94 | | |
|---|
| 95 | | if (!$vfs->exists($other_dir) || !is_subdir_of($cfg['FTP_HOMEDIR'] . "/" . $_SESSION['user_logged'], $other_dir)) { |
|---|
| | 94 | $virtual_dir = clean_input($_POST['other_dir']); |
|---|
| | 95 | $res = $vfs->exists($virtual_dir); |
|---|
| | 96 | |
|---|
| | 97 | if (!$res || !is_subdir_of($cfg['FTP_HOMEDIR'] . "/" . $_SESSION['user_logged'], $other_dir)) { |
|---|
| 96 | 98 | set_page_message(tr('%s does not exist', clean_input($_POST['other_dir']))); |
|---|
| 97 | 99 | return; |
|---|
| … | … | |
| 126 | 128 | if (isset($_POST['use_other_dir']) && $_POST['use_other_dir'] === 'on') { |
|---|
| 127 | 129 | $other_dir = $cfg['FTP_HOMEDIR'] . "/" . $_SESSION['user_logged'] . clean_input($_POST['other_dir']); |
|---|
| 128 | | |
|---|
| 129 | | if (!$vfs->exists($other_dir) || !is_subdir_of($cfg['FTP_HOMEDIR'] . "/" . $_SESSION['user_logged'], $other_dir)) { |
|---|
| | 130 | $virtual_dir = clean_input($_POST['other_dir']); |
|---|
| | 131 | $res = $vfs->exists($virtual_dir); |
|---|
| | 132 | if (!$res) { |
|---|
| 130 | 133 | set_page_message(tr('%s does not exist', clean_input($_POST['other_dir']))); |
|---|
| 131 | 134 | return; |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>