Skip to content

Commit c9e9ed9

Browse files
authored
Merge pull request #2 from datopian/fix/116
Fixed the blank download
2 parents 15e16f0 + 8acdc22 commit c9e9ed9

File tree

1 file changed

+1
-1
lines changed
  • ckanext/dataexplorer/public/vendor/recline

1 file changed

+1
-1
lines changed

ckanext/dataexplorer/public/vendor/recline/recline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4839,7 +4839,7 @@ this.recline.View = this.recline.View || {};
48394839
},
48404840
extractFile: function (self, sql_query, format, query={}) {
48414841
var base_path = self.model.attributes.endpoint || self.options.site_url;
4842-
var endpoint = `${base_path}/3/action/datastore_search_sql?sql=${escape(sql_query)}&resource_id=${query.resource_id}&format=${format}`; // USE BASE_PATH IN PRODUCTION
4842+
var endpoint = `${base_path}/3/action/datastore_search_sql?sql=${encodeURIComponent(sql_query)}&resource_id=${query.resource_id}&format=${format}`; // USE BASE_PATH IN PRODUCTION
48434843
self.progress();
48444844

48454845
fetch(endpoint)

0 commit comments

Comments
 (0)