mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
MDL-36204 Improve moodle1 conversion of embedded files
URL of files referenced in HTML fields via $@FILEPHP$@ are usually encoded if they were linked using the HTML editor. So if they contain spaces or plus signs in the name, their URL is encoded to use %20 and %2B respectively. Sometimes, for example when the HTML was edited manually in 1.9 without the editor, non-encoded file names may be put into the HTML text. Such a link used to work in 1.9 so we add an explicit support for it, too. However, we do not support partially encoded URLs (e.g. only spaces are encoded while plus signs are not). Such links are unmodified and will rely on Legacy files support.
- Loading branch information
Showing
2 changed files
with
28 additions
and
7 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