What steps will reproduce the problem?
1. Use IIS (which uses \ as DIRECTORY_SEPARATOR instead of /)
2. Create a ZIP archive form the admin panel
3. Download the created ZIP file and find the admin + backup dir included
(should be excluded)
What is the expected output? What do you see instead?
Expected output: ZIP file without admin+backup directory
Actual output: ZIP file with admin+backup directory
What version of the product are you using? On what operating system?
GetSimple 3.1 on IIS
Fix:
- file admin/zip.php
- line 45 is [$dir = str_replace($sourcePath, '', $element->getPath()) . '/';]
- line 45 should be [$dir = str_replace($sourcePath, '', $element->getPath()) .
DIRECTORY_SEPARATOR;]
- Problem fixed
Original issue reported on code.google.com by h...@danhof.org on 1 Mar 2012 at 10:13
Original issue reported on code.google.com by
h...@danhof.org
on 1 Mar 2012 at 10:13