Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bs tables export options #10857

Merged
merged 2 commits into from
Mar 22, 2022
Merged

Conversation

uberbrady
Copy link
Collaborator

This grabs the attribute-based export options that we set on each table and ensures those export options are properly respected.

Because I had to change the nesting-level of the indented JS object, the change shows up bigger than it really is. Probably best to try and 'ignore whitespace' when looking at this.

The htmlContent bit that we do makes the CSV exports super-duper gross, and I hate that. I don't know a good way to work around that though; I'm pretty sure we put that in to avoid XSS attacks, and I would like to continue to do that. There are some kinda-interesting table-export options we might be able to use in order to screen out potential XSS though? We'll have to talk it over.

But, with this change, the appropriate columns are correctly ignored, and the downloaded export file is appropriately named. Yay.

@uberbrady uberbrady requested a review from snipe as a code owner March 22, 2022 16:47
@snipe snipe merged commit 729b23c into snipe:master Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants