Hello !
Yes you're right it's under
http://trac.roundcube.net/changeset/1631On the three files, I corrected two files :
1. trunk/roundcubemail/program/include/rcube_mdb2.php
#DEBUG-REMOVED $data = '';
#DEBUG-REMOVED if ($fd = fopen($file_name, 'r'))
#DEBUG-REMOVED {
#DEBUG-REMOVED $data = fread($fd, filesize($file_name));
#DEBUG-REMOVED fclose($fd);
#DEBUG-REMOVED }
// line added according to :
// selon
http://trac.roundcube.net/changeset/1631$data = file_get_contents($file_name);
2. program/lib/html2text.inc
function set_html( $source, $from_file = false )
{
#DEBUG-REMOVED $this->html = $source;
if ( $from_file && file_exists($source) ) {
#DEBUG-REMOVED $fp = fopen($source, 'r');
#DEBUG-REMOVED $this->html = fread($fp, filesize($source));
#DEBUG-REMOVED fclose($fp);
#DEBUG-REMOVED }
$this->html = file_get_contents($source);
}
else
$this->html = $source;
$this->_converted = false;
}
3. I didn't found a file like trunk/roundcubemail/program/include/rcube_template.php in my 0.1.1 version ? But it seems to be program/include/rcmail_template.inc :
// include a file
case 'include':
$path = realpath($this->config['skin_path'].$attrib['file']);
#DEBUG-REMOVED if (filesize($path))
if (is_readable($path)) {
#DEBUG-REMOVED {
if ($this->config['skin_include_php'])
$incl = $this->include_php($path);
#DEBUG-REMOVED else if ($fp = @fopen($path, 'r'))
#DEBUG-REMOVED {
#DEBUG-REMOVED $incl = fread($fp, filesize($path));
#DEBUG-REMOVED fclose($fp);
else {
$incl = file_get_contents($path);
}
return $this->parse_xml($incl);
}
break;
4. I see that file upload is now functional : temporary file in /tmp has the correct size of 69kb :
# ls -ltr /tmp/ | tail -n 1
-rw------- 1 wwwrun www 672768 Aug 17 17:21 rcmAttmnt3ubnlu
5. But the sent attached file is still 8kb
Help ! ;-)
Thanks a lot for any further help !
Denis