CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11503] config.php entry getting truncated in file manager

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Thu Jul 20 17:33:24 -0400 2017

Assigned To:
Version: 2.2.2
CMSMS Version: 2.2.2
Severity: Minor
Resolution: Fixed
State: Open
Summary:
config.php entry getting truncated in file manager
Detailed Description:
Description:
if you have your uploads path defined in config.php, e.g.:
$config['root_path'] = '/home/path/public_html/';
$config['uploads_path'] = $config['root_path'].'uploads';

Then go to File Manager, it will show the path as 'ploads' instead of 'uploads'
and not let you browse the file system.

Workaround:
remove those lines from your config
(if you are using a non-standard path, you can try inserting a sacrificial
character in front of uploads, e.g. $config['uploads_path'] =
$config['root_path'].'Xuploads'; but that may cause issues elsewhere)



History

Comments
avatar
Date: 2017-07-26 11:23
Posted By: Robert Campbell (calguy1000)

Fixed.

It was because paths in the config.php shouldn't really end with /
we use the / to build paths internally.
      
avatar
Date: 2017-07-26 11:25
Posted By: Robert Campbell (calguy1000)

Using this syntax would not have caused the problem:

$config['root_path'] = '/home/path/public_html';
$config['uploads_path'] = $config['root_path'].'/uploads';
      
Updates

Updated: 2017-07-26 11:23
resolution_id: => 7