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

Issue with confirmation email from Data Annotation #1125

Closed
Zero3K opened this issue May 10, 2023 · 1 comment
Closed

Issue with confirmation email from Data Annotation #1125

Zero3K opened this issue May 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Zero3K
Copy link

Zero3K commented May 10, 2023

DataAnnotation - SnappyMail
DataAnnotation - mboxview
Confirm your dataannotation.tech account.eml.txt

@the-djmaze
Copy link
Owner

Correct. The mail uses

    <a style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; text-decoration: none; color: #265cc4;">
        <button class="btn-confirm" style='-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; gap: 8px; min-width: 143px; height: 44px; background-color: #265cc4; box-shadow: 0px 1px 2px rgba(16,24,40,0.05); border-radius: 8px; font-family: "Inter", sans-serif; font-style: normal; font-weight: 500; font-size: 1em; line-height: 24px; color: #fff; cursor: pointer; padding: 10px 18px; border: 1px solid #265cc4;'>
            Confirm account
        </button>
    </a>

The problem here is that BUTTON is an HTMLElement that should be inside FORM.
E-mails don't process forms so i disallowed all form input HTML elements.

disallowedTags = [
'svg','script','title','link','base','meta',
'input','output','select','button','textarea',
'bgsound','keygen','source','object','embed','applet','iframe','frame','frameset','video','audio','area','map'
// not supported by <template> element
// ,'html','head','body'
].join(','),

This could be improved by keeping the innerHTML

@the-djmaze the-djmaze added the enhancement New feature or request label May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants