<div dir="ltr">Hello,<div><br></div><div>I found a bug that is causing the function writeReportToCSVFile($fileName) to crash when trying to create the temporary file for the scheduled report.<br></div><div><br></div><div>The filename used has invalid (:) characters for the Windows filesystem and therefore fopen(+w) fails.</div><div><br></div><div>The problem lies in the function Sendmail() in ScheduledReports.php where the name of the file is generated, appending the timestamp to the report name in this format:</div><div><br></div><div><div>$currentTime = date('Y-m-d:H:i:s'); </div><div><br></div><div>This can be easily fixed by changing the : for other character like this:</div><div><br></div><div>$currentTime = date('Y-m-d.H.i.s'); </div><div><br></div><div>I tested the fix and works well now.</div><div><br></div><div>Let me know if you want me to report it on <a href="http://track.vtiger.com">track.vtiger.com</a></div><div><br></div><div>Thank you</div><div>PM</div><div> </div></div><div><br></div></div>