GetSimple Support Forum

Full Version: Creating website archives fails on restrictive web servers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It seems that admin/zip.php (in line 48) also tests if <GS_ROOT>/.. is a directory, which can fail in very restrictive environments.

The following patch fixed the problem:
Code:
if ( strstr($dir, $GSADMIN.'/') || strstr($dir, 'backups/')) {
  #don't archive these folders
} else if ($element->getFilename() != '..') { // FIX: if added to ignore parent directories
  if ($element->isDir()) {
@ccagle8: will this be corrected in 3.1?
i just updated the SVN with it. thanks!