mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-64511 privacy: encode data URL when loading content.
Previously paths that included ? or # characters would break loading.
This commit is contained in:
parent
7a5e8583d9
commit
4cf939c638
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ function loadContent(datafile, callback) {
|
|||
}
|
||||
|
||||
newscript.type = 'text/javascript';
|
||||
newscript.src = data;
|
||||
newscript.src = encodeURIComponent(data);
|
||||
newscript.charset = 'utf-8';
|
||||
document.getElementsByTagName("head")[0].appendChild(newscript);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue