Bug #5705
Security::check_abs_path function has $_configuration['symbolic_course_folder_abs'] not set
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
History
Updated by Julio Montoya almost 8 years ago
- Status changed from New to Bug resolved
- % Done changed from 0 to 100
code was commented
Commenting code that uses $_configuration['symbolic_course_folder_abs'] see #5705