Skip to content

Commit

Permalink
MDL-64511 privacy: encode data URL when loading content.
Browse files Browse the repository at this point in the history
Previously paths that included ? or # characters would break loading.
  • Loading branch information
paulholden committed Jun 28, 2019
1 parent 035d608 commit 0db181f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions privacy/export_files/general.js
Expand Up @@ -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);

Expand Down Expand Up @@ -135,4 +135,4 @@ window.$(document).ready(function() {
e.stopPropagation();
handleClick(window.$(this));
});
});
});

0 comments on commit 0db181f

Please sign in to comment.