Skip to content

Commit b154e94

Browse files
committed
Fix url escaping when extracting file.
1 parent 33cb602 commit b154e94

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4830,9 +4830,7 @@ this.recline.View = this.recline.View || {};
48304830
},
48314831
extractFile: function (self, sql_query, format) {
48324832
var base_path = self.model.attributes.endpoint || self.options.site_url;
4833-
//console.log(base_path);
4834-
var endpoint = `${base_path}/3/action/datastore_search_sql?sql=${sql_query}`; // USE BASE_PATH IN PRODUCTION
4835-
//var endpoint = `https://ckan.nhs.staging.datopian.com/api/3/action/datastore_search_sql?sql=${sql_query}`;
4833+
var endpoint = `${base_path}/3/action/datastore_search_sql?sql=${escape(sql_query)}`; // USE BASE_PATH IN PRODUCTION
48364834
self.progress();
48374835

48384836
fetch(endpoint)

0 commit comments

Comments
 (0)