Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating website archives fails on restrictive web servers
#1
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()) {
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#2
@ccagle8: will this be corrected in 3.1?
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
i just updated the SVN with it. thanks!
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply




Users browsing this thread: 1 Guest(s)