From 7464630fb5d32d57364a2ee23a9f7a72926612f0 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Sun, 14 Aug 2022 21:41:04 -0400 Subject: [PATCH] Fixed #363 - Downloading data just returns a file with a json null data response --- js/component/modal/download_data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); });