Project

General

Profile

Actions

Fehler #123

open

FTP edit mode

Added by C haoz almost 11 years ago.

Status:
Neu
Priority:
Normal
Category:
Bug
Target version:
-
eXtplorer Version:
2.1.2
Joomla! Version:
none

Description

Hi,

in FTP mode the edit feature does not work. The edit windows opens, but file content is not show. A click on reopen show false as file content. In ftp_tmp a new tmp file is created, but has zero bytes.

The additional third argument to get to force overwriting of file create by tempnam is needed.

--- a/libraries/File_Operations.php
+++ b/libraries/File_Operations.php
@ -294,8 +294,8 @ class ext_File {

$file = str_replace("\\", '/', $file);
if ($file[0] != '/') $file = '/'. $file;
- $res = $GLOBALS['FTPCONNECTION']->get($file, $tmp_file);

+ $res = $GLOBALS['FTPCONNECTION']
>get($file, $tmp_file, true);^M
+rue^M
if (PEAR::isError($res)) {
return false;
} else {
@ -537,4 +537,4 @ function &getCachedFTPListing($dir, $force_refresh=false) {
return $GLOBALS['ftp_ls'][$dir];
}

cu chaoz

No data to display

Actions

Also available in: Atom PDF