-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.1
-
MOODLE_24_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
wip-
MDL-37942-master -
I find that if I add images with non-alphanumeric characters, that are url encoded, into content that is then exportable via the Portfolio API those images cause an error in the export process.
Error is as follows:
Couldn't find a file from the embedded path info context 39 component mod_glossary filearea entry itemid 104 filepath / name /logo%20space.gif
line 1254 of /lib/portfoliolib.php: call to debugging()
Looking at lib/portfoliolib.php I can see that portfolio_rewrite_pluginfile_url_callback() does not have any url decoding. The pluginfile image name would be url encoded when sent and this won't match the name in the file table without being decoded.
- is duplicated by
-
MDL-34188 Unable to export files containing unicode characters in the name to portfolio
-
- Closed
-