The Offline Quiz activity allows the creation of multiple choice tests with questions from the question bank of a Moodle course, which are handed out to students in printed form. After completion, the answer forms are scanned and can be automatically evaluated online directly in Moodle.
Our context : Moodle 4.1 / mod_offlinequiz v4.1.7
One of our users reports a problem when a student displays his attempt.
The scanned file is present in the database, but the called URL is incorrect.
Step to reproduce the issue: upload a scanned file that contains a percentage character in its filename (e.g. test%.png)
This patch should correctly encode the called URL. I also fixed 2 other locations where I spotted this issue.
(this issue is similar to #188)