CMS MADE SIMPLE FORGE

CMSMSExt

 

[#12670] tmp folder permissions incorrect

avatar
Created By: Chris Taylor (chrisbt)
Date Submitted: Mon Dec 04 06:27:00 -0500 2023

Assigned To: Fernando Morgado (JoMorg)
Version: 1.4.5
CMSMS Version: 2.2.18
Severity: Minor
Resolution: None
State: Open
Summary:
tmp folder permissions incorrect
Detailed Description:
modules/CMSMSExt/lib/session/class.Manager.php, line 66, change from:

  public function createTemporaryDirectory() : void
  {
    if( !@\mkdir($this->tmp_dir, '0777') && !\is_dir($this->tmp_dir) )


to:
    if( !@\mkdir($this->tmp_dir, 0777) && !\is_dir($this->tmp_dir) )


Could only find one other line creating the tmp folder and that was already
using the Octal 0777

:)


History