Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

dotcom: fix issue with dotcom emails#63183

Merged
evict merged 2 commits into
mainfrom
erik+vincent/fix-email-dotcom
Jun 10, 2024
Merged

dotcom: fix issue with dotcom emails#63183
evict merged 2 commits into
mainfrom
erik+vincent/fix-email-dotcom

Conversation

@evict

@evict evict commented Jun 10, 2024

Copy link
Copy Markdown
Contributor

Refer to https://github.com/sourcegraph/security-issues/issues/392#issuecomment-2158160741 for more information about this dotcom specific change.

Test plan

CI tests

@evict evict requested review from a team and eseliger June 10, 2024 12:03
@evict evict self-assigned this Jun 10, 2024
@cla-bot cla-bot Bot added the cla-signed label Jun 10, 2024
@evict evict force-pushed the erik+vincent/fix-email-dotcom branch from 2c6d037 to 6ce6ae8 Compare June 10, 2024 12:03

cleanedName := strings.ReplaceAll(strings.ToLower(name), " ", "")

return url.PathEscape(unicodeToAscii(cleanedName)) + "@noreply.sourcegraph.com", nil

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just triple checking that we're fine to give our top domain away for that :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a fake address and we are not receiving emails for real so we are not really using it, should be fine? 😂

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will bounce in case of spammers trying it!

@evict evict merged commit e024998 into main Jun 10, 2024
@evict evict deleted the erik+vincent/fix-email-dotcom branch June 10, 2024 13:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants