GDPR Zip file broken + fix
Posted: Mon Mar 04, 2019 11:46 am
Hi,
We discovered a small issue with the SVN Trunk version of vicidial and wanted to relay the fix for future updates.
This is not OS specific, it's PHP.
In the GDPR download on the lead edit page (admin_modify_lead.php) the download link gives you a seemingly blank zip file.
If you use a program like 7Zip you will see it actually created a small folder structure inside.
This is coming from the file path passed when creating the zip file.
Our fix is to simply specify the file names when they are added to the zip file as the 'addFile' function accepts them as a second parameter.
So all we did was append ", $file" to line 700 of admin_modify_lead.php (in the addFile function call).
We have tested this in the latest vicidial (3069, admin_modify_lead version 3012) and it seemed to work fine.
regards
We discovered a small issue with the SVN Trunk version of vicidial and wanted to relay the fix for future updates.
This is not OS specific, it's PHP.
In the GDPR download on the lead edit page (admin_modify_lead.php) the download link gives you a seemingly blank zip file.
If you use a program like 7Zip you will see it actually created a small folder structure inside.
This is coming from the file path passed when creating the zip file.
Our fix is to simply specify the file names when they are added to the zip file as the 'addFile' function accepts them as a second parameter.
So all we did was append ", $file" to line 700 of admin_modify_lead.php (in the addFile function call).
We have tested this in the latest vicidial (3069, admin_modify_lead version 3012) and it seemed to work fine.
regards