ARETEedu / moodle-mod_arete

A repository service for Augmented Reality Learning Experience Models (compliant with IEEE p1589-2020)
GNU General Public License v3.0
3 stars 2 forks source link

QRcode link broken because not url encoded #131

Open fwild opened 1 year ago

fwild commented 1 year ago

The QRcode link for the Google Chart API is not correct, dropping the id parameter, because the link handed over as download parameter is not url encoded.

Currently (example):

https://chart.googleapis.com/chart?cht=qr&chs=500x500&chl=wekit://load?download=1/mod_arete/arlems/841697857/session-2022-09-13_09-16-38.zip&id=session-2022-09-13_09-16-38

Should be:

https://chart.googleapis.com/chart?cht=qr&chs=500x500&chl=wekit%3A%2F%2Fload%3Fdownload%3D1%2Fmod_arete%2Farlems%2F841697857%2Fsession-2022-09-13_09-16-38.zip%26id%3Dsession-2022-09-13_09-16-38

urlencode