Member
Member
idumaire   2007-02-02, 16:23
#1

Some provider don't allox user to change directory mod !

I propose to add in classes.php in Album function, line 436

` // Second defense against reverse folder traversal:

if(!file_exists($this->localpath) || strpos($this->localpath, '..') !== FALSE) {

  $this->exists = false;

  return false;

}

if( ! is_writable($this->localpath) ) { chmod($this->localpath, 777); }

$new = parent:ersistentObject('albums', array('folder' => $this->name));`
Developer
Developer
trisweb   2007-02-02, 21:58
#2

That could work, true, but it might not because often the Apache server process isn't allowed to chmod either. However, in most environments, it can work, so it's good to do. Thanks for the patch!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.