Dokuwiki Filelist Plugin

Tasklist

FS#26 - Can't find media resources if $conf['savedir'] is an absolute path

Attached to Project: Dokuwiki Filelist Plugin
Opened by Anonymous Submitter - Saturday, 17 May 2008, 16:58 GMT+2
Task Type Bug Report
Category Backend / Core
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 2008/01/24
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I moved my data directory out of the wiki installation for security reasons, and the plugin no longer finds those files when configured for media access.

I've traced this to line 31 of syntax.php, which probably needs to be changed to check if the $conf['savedir'] is an absolute path, and if so, not prepend the DOKU_INC path prefix.
This task depends upon

Comment by samfisch (sf) - Monday, 09 February 2009, 17:36 GMT+2
<code>
#$this->mediadir = rp(DOKU_INC.'/'.$conf['savedir'].'/media').'/';
$this->mediadir = rp($conf['savedir'].'/media');
</code>

fixed this **for me**. Also the default allowed pathes had to be changed.

Loading...