-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.7.5, 2.8.3
-
Component/s: Repositories
-
Testing Instructions:
-
Affected Branches:MOODLE_27_STABLE, MOODLE_28_STABLE
-
Fixed Branches:MOODLE_27_STABLE, MOODLE_28_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-48929-master -
Pull Master Diff URL:
The function send_relative_file in repository/filesystem/lib.php does not work as expected in a windows system.
The condition
if (strpos($fullrelativefilepath, $this->get_rootpath()) === 0 && file_exists($fullrelativefilepath))
Well just strpos($fullrelativefilepath, $this->get_rootpath()) return false because of mixed slashes. A dump from the problem on my system:
$this->get_rootpath()='C:\www\moodledata\26/repository/scorm/'
$fullrelativefilepath= 'C:\www\moodledata\26\repository\scorm\...'
- has been marked as being related by
-
MDL-41580 Allow an imsmanifest.xml file to be selected from a file system repository and allow relative linking
-
- Closed
-