mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
2c9689ed21
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.