Repository navigation
System.Net.Mail Validation improvements #128981
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
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
afa0562
Initial plan
Copilot 5839a32
Tighten DecodeEncoding to prevent header parameter injection
Copilot ac45139
Use SearchValues for encoded-word token/data validation
Copilot 0bb60b5
Merge branch 'main' into copilot/better-contenttype-name-validation
mrek-msft 3505d03
Minor fix
mrek-msft b7ffb80
Add tests exercising RFC 2047 spec.
mrek-msft 51f414a
some leftover test TODOs
mrek-msft 09759e8
Merge MimeBasePart.DecodeHeaderValue and DecodeEncoding into a single…
Copilot 5522557
Merge copilot changes to local.
mrek-msft 44e4bda
Modified handling ambigous encoding and improved readability of foldi…
mrek-msft 8ff78a5
Improve test coverage and fix failing tests.
mrek-msft 05a1d10
Fix silent truncation of malformed Q-encoded escape sequences
Copilot 1763e49
Revert changes in QEncodedStream
mrek-msft 8984cb8
Improve test data
mrek-msft b02417c
Improve test data
mrek-msft 66e2cb7
Allow multiple ecnoded words with different encodings.
mrek-msft 8e2fd28
Return backward compatible behaviour and promote bad encoding exceptions
mrek-msft ee5dedf
Fixed wrong character in length test. Added support for checking enco…
mrek-msft a6d8757
Fix length validation and tests.
mrek-msft e7e2396
Reject over-length encoded-words before charset resolution
Copilot b61e200
Remove useless long comment binding statements about order of checks.
mrek-msft 6de02d0
Add test case
mrek-msft 16995ef
Add test case
mrek-msft f69c6cf
Catch unsupported encoding exceptions same as format.
mrek-msft cc1f419
Handle unsupported charset in ContentType
mrek-msft 4880dae
Remove unused using directive for InteropServices
mrek-msft 7b77d0d
Fix typo in comment
mrek-msft 15df36c
Add test case
mrek-msft 8febeb2
Remove wrapping encoded word in quoted string (RFC 2047 prohibits this)
mrek-msft 007fa8c
Fix assert expect/actual param order.
mrek-msft f3b391b
Improving RFC2047 compliance
mrek-msft 9776cb0
Merge branch 'copilot/better-contenttype-name-validation' of https://…
mrek-msft f79bdfc
Wrap mime fields in quotes again despite its against RFC.
mrek-msft 5bf01f2
Add test case
mrek-msft 4ccac87
Fix handling " in encoded word for MIME headers
mrek-msft 596fe00
Merge branch 'copilot/better-contenttype-name-validation' of https://…
mrek-msft 132dc9f
Fix logical operator
mrek-msft 1c7cd96
Enhance comments
mrek-msft 3bb35a5
Merge 'main' into 'copilot/better-contenttype-name-validation'
mrek-msft b3befd4
Merge copilot enhancements
mrek-msft 0bfac4a
Merge branch 'main' into copilot/better-contenttype-name-validation
mrek-msft 7e1424c
Merge branch 'main' into copilot/better-contenttype-name-validation
mrek-msft 87e4874
Remove unused import
mrek-msft c4f96f9
Remove bad test, fix leaking disposable
mrek-msft 0929cd4
Add CRLF validations
mrek-msft bff8159
Cover ContentId by more tests.
mrek-msft d676b70
Cover AlternateView.BaseUri (aka ContentLocation) by more tests.
mrek-msft 5d901b3
Improve backward compatibility of ContentDisposition validation
mrek-msft b962c67
Consolidate similar tests
mrek-msft 938caf5
Improve test comment
mrek-msft 4d5a14e
Unify similar tests and improve comments clarity
mrek-msft 78df3cc
Remove property checked by other test
mrek-msft bc42b6e
Better ContainsAny
mrek-msft 50847df
Better ContainsAny
mrek-msft 8193d5a
Merge branch 'copilot/better-contenttype-name-validation' of https://…
mrek-msft 5072de2
Improve exception message
mrek-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.