diff --git a/js/component/modal/download_data.js b/js/component/modal/download_data.js index ecfccf2..06f6b53 100644 --- a/js/component/modal/download_data.js +++ b/js/component/modal/download_data.js @@ -274,7 +274,7 @@ beestat.component.modal.download_data.prototype.get_buttons_ = function() { .format() }; - window.location.href = '/api/?resource=runtime&method=download&arguments=' + JSON.stringify(download_arguments) + '&api_key=' + beestat.api.api_key; + window.location.href = '/api/?resource=runtime&method=download&arguments=' + encodeURIComponent(JSON.stringify(download_arguments)) + '&api_key=' + beestat.api.api_key; self.dispose(); });