google-code-backups / get-simple-cms

Automatically exported from code.google.com/p/get-simple-cms
GNU General Public License v3.0
0 stars 0 forks source link

Problem with directory naming in creating ZIP website archives #303

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r670.

Original comment by ccagle8 on 5 Mar 2012 at 1:41