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

net/mail: message.go:174 panics if the address is invalid #12098

Closed
ginkoob opened this issue Aug 10, 2015 · 0 comments
Closed

net/mail: message.go:174 panics if the address is invalid #12098

ginkoob opened this issue Aug 10, 2015 · 0 comments
Assignees
Milestone

Comments

@ginkoob
Copy link

@ginkoob ginkoob commented Aug 10, 2015

addr := mail.Address{"somename", ""}
addr.String()

Result:
Panic due local, domain := a.Address[:at], a.Address[at+1:] from net/mail/message.go:174. This is a breaking change because it didn't panic before.

go version devel +e019767 linux/amd64

@adg adg added this to the Go1.5 milestone Aug 10, 2015
@adg adg changed the title net/mail/message.go:174 panics if the address is invalid net/mail: message.go:174 panics if the address is invalid Aug 10, 2015
@dsymonds dsymonds self-assigned this Aug 11, 2015
@dsymonds dsymonds closed this in 1d75b40 Aug 11, 2015
@golang golang locked and limited conversation to collaborators Aug 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.