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

New NamedDataSource #50

Merged
merged 1 commit into from
Jul 30, 2016
Merged

New NamedDataSource #50

merged 1 commit into from
Jul 30, 2016

Conversation

kosinal
Copy link
Contributor

@kosinal kosinal commented Jul 30, 2016

I had a problem, when I used FileDataSource, but I need to rename it due to security (sending ps1, tmp or vbs files). When I used addAttachemnt("fixedName", new FileDataSource(...)).
The problem is in the DataHandler.getName, which use the name of the data source.

When I created wrapper NamedDataSource, I am able to rename the file and I can use the original name as well.

@bbottema bbottema merged commit 1320cd1 into bbottema:master Jul 30, 2016
bbottema added a commit that referenced this pull request Jul 30, 2016
@bbottema
Copy link
Owner

bbottema commented Jul 30, 2016

Released in 4.1.1. Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants