You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload a file with a "?" in it's filename in a new activity
click on "download"
you get an error like this
What I found out:
It seems like your plugin is using some old columns but I couldn't find them in the db/install.xml anymore. I'd encourage you to at least add this column to the install.xml so you don't get some not helpful db-Errors while debugging
the Filename is not encoded. This leads to the following procedure:
pluginfile.php/${number}/mod_pdfannotator/content/0/iseverybodythere?.pdf?forcedownload=1
the browser interpretates the first "?" as the end of the url and the .pdf as the first parameter
I will push a pull request to fix this issue. This probably also applies to all other http special characters like "&" or "(", but I have not tested it.
Problem 1) is still not fixed by me because I have no idea whatsoever if this code is still needed or how to fix it. (see lib.php:386-395)
The text was updated successfully, but these errors were encountered:
univietw
added a commit
to univietw/moodle-mod_pdfannotator
that referenced
this issue
Oct 25, 2021
How to reproduce:
you get an error like this
What I found out:
pluginfile.php/${number}/mod_pdfannotator/content/0/iseverybodythere?.pdf?forcedownload=1
the browser interpretates the first "?" as the end of the url and the .pdf as the first parameter
I will push a pull request to fix this issue. This probably also applies to all other http special characters like "&" or "(", but I have not tested it.
Problem 1) is still not fixed by me because I have no idea whatsoever if this code is still needed or how to fix it. (see lib.php:386-395)
The text was updated successfully, but these errors were encountered: