[Vtigercrm-developers] PATCH: Fix hidden attachment size limit bug
Dennis Grant
dgrant at accuratetechnologies.com
Mon Jan 9 10:09:20 PST 2006
2 files need to be patched.
1) Patch index.php as follows; the file should end like this:
-------------------------------------------
echo "<table align='center'><tr><td align='center'>";
// Under the Sugar Public License referenced above, you are required to
leave in all copyright statements in both
// the code and end-user application.
//echo("<br>© 2004 <a href='http://www.sugarcrm.com'
target='_blank'>SugarCRM Inc.</a> All Rights Reserved.<BR />");
if($calculate_response_time)
{
$endTime = microtime();
$deltaTime = microtime_diff($startTime, $endTime);
echo(' Server response time: '.$deltaTime.' seconds.');
}
echo "</td></tr></table>\n";
}
echo "<script>\n";
echo "var userDateFormat = \"$current_user->date_format\"\n";
echo "</script>\n";
}
-------------------------------------------
The change is in the last few lines; this puts the assignment of
userDateFormat inside the check for viewing an attachment or not, and
does so in (I think) a nicer format.
2) Change line 99 of startVtiger.sh to:
------------------
./bin/mysqld_safe --basedir=$MYSQL_HOME --datadir=$MYSQL_HOME/data
--socket=$mysql_socket --tmpdir=$MYSQL_HOME/tmp --user=root
--port=$mysql_port --max_allowed_packet=16M --default-table-type=INNODB
> /dev/null &
------------------
The change is the addition of -max_allowed_packet=16M
Eventually, we're going to have to start distributing proper unix diff
patches for this stuff; it makes life MUCH easier.
DG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20060109/2e9199e0/attachment-0005.html
More information about the vtigercrm-developers
mailing list