academic-moodle-cooperation / moodle-mod_offlinequiz

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.
https://academic-moodle-cooperation.org/mod_offlinequiz/
GNU General Public License v3.0
31 stars 58 forks source link

fix url encoding issue #261

Closed jboulen closed 4 months ago

jboulen commented 4 months ago

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)

univietw commented 4 months ago

Thank you for the fix.