Project

General

Profile

Bug #5705

Security::check_abs_path function has $_configuration['symbolic_course_folder_abs'] not set

Added by Julio Montoya almost 7 years ago. Updated over 6 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
07/11/2012
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

It seems that this value is not set in the main/inc/conf/configuration.php

Somebody still use it?

$_configuration['symbolic_course_folder_abs']


    public static function check_abs_path($abs_path, $checker_path) {
        global $_configuration;
        if (empty($checker_path)) { return false; } // The checker path must be set.

        $true_path = str_replace("\\", '/', realpath($abs_path));
        $found = strpos($true_path.'/', $checker_path);

        if ($found === 0) {
            return true;
        } else {
            // Code specific to courses directory stored on other disk.
            $checker_path = str_replace(api_get_path(SYS_COURSE_PATH), $_configuration['symbolic_course_folder_abs'], $checker_path);
            $found = strpos($true_path.'/', $checker_path);
            if ($found === 0) {
                return true;
            }
        }
        return false;
    }

Associated revisions

Revision 375057e9 (diff)
Added by Julio Montoya over 6 years ago

Commenting code that uses $_configuration['symbolic_course_folder_abs'] see #5705

History

#1

Updated by Yannick Warnier over 6 years ago

  • Target version set to 1.9.6
#2

Updated by Julio Montoya over 6 years ago

  • Status changed from New to Bug resolved
  • % Done changed from 0 to 100

code was commented

#3

Updated by Yannick Warnier over 6 years ago

  • Tracker changed from Support to Bug

Also available in: Atom PDF