Hi,

In 'ckeditor\includes\filemanager.config.php'. Line no 102.

 $baseUrl = strtr(base_path(), array(
        '/modules/ckeditor/ckfinder/core/connector/php' => '',
      )) . variable_get('file_private_path', conf_path() . '/files') . '/';
 $baseDir = resolveUrl($baseUrl);

Instead of having '/modules/ckeditor/ckfinder/core/connector/php', we can have the below code as per Drupal standards:

 $baseUrl = strtr(base_path(), array(
        drupal_get_path('module','ckeditor') . '/ckfinder/core/connector/php' => '',
      )) . variable_get('file_private_path', conf_path() . '/files') . '/';
 $baseDir = resolveUrl($baseUrl);

If this is not updated and you keep your 'ckfinder' library at 'modules/contrib/ckeditor/ckfinder' (or any other location except '/modules/ckeditor/ckfinder'), you may face issues related to ckfinder.

This issue exists in Drupal 7 and Drupal 6 as well.

Regards,
Neeraj Singh

CommentFileSizeAuthor
#1 ckfinderConfig-2540528.patch676 bytesneerajsingh

Comments

neerajsingh’s picture

StatusFileSize
new676 bytes

File name: filemanager.config.php

Attaching a patch here, for the above mentioned issue, please review the same.

Regards,
Neeraj Singh

neerajsingh’s picture

Priority: Normal » Major
Status: Needs review » Active
neerajsingh’s picture

Status: Active » Needs review

  • jcisio committed 23e909d on 7.x-1.x authored by neerajsingh
    Issue #2540528 by neerajsingh: In filemanager.config.php, Building $...
jcisio’s picture

Status: Needs review » Fixed

In this same file I think there are some weird logic in looking for Drupal root, but it is unrelated to this bug. So, I committed and pushed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.