mirrored from git://git.moodle.org/moodle.git
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-62003 privacy: Consistently export files into _files folder
There were two major issues with the previous implementation: * The exported folder name was localised so it was "Files" or "Soubory" etc depending on the current language. Yet URLs referring to the files in that folder were always rewritten with hard-coded English "files". * Files from all fileareas and itemids were all exported to a single target directory. So if there were two files with the same name being exported from multiple areas (such as submission_content and submission_attachment in the workshop module), one would overwrite another. The patch addresses these issues as follows: * To unify the folder name and also to minimise the risk of conflict with a subcontext folder, we now always export stored files under "_files" folder. * Under that folder, there is a subdirectory with the area name and then eventually another subdirectory with non-zero itemid. And there finally the stored_file is exported to under its own file path.
- Loading branch information
Showing
3 changed files
with
102 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters