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

Block organization name with HTML content #159

Merged

Conversation

sadilchamishka
Copy link
Contributor

@sadilchamishka sadilchamishka commented Nov 16, 2024

Purpose

The organization name can have any character as there is no specific regular expression defined to validate organization name. Due to that malicious organization names with HTML content can be created and those organization names will be shown in the email send for the user invitations etc..

Email templates can be updated with HTML content by the administrators also. But as we have the capability to validate the organization name with HTML content while creating and update organizations, its better to have a validation until proper organization name regular expression is defined.

Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.91%. Comparing base (3571b5e) to head (e329828).
Report is 50 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #159   +/-   ##
=========================================
  Coverage     45.91%   45.91%           
- Complexity      442      443    +1     
=========================================
  Files            47       47           
  Lines          2984     2988    +4     
  Branches        358      359    +1     
=========================================
+ Hits           1370     1372    +2     
- Misses         1458     1460    +2     
  Partials        156      156           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/11870513482

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/11870513482
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/11870513482

@sadilchamishka sadilchamishka force-pushed the validate-org-name-for-html-content branch from c4245e2 to 30a80d4 Compare November 18, 2024 04:06
@sadilchamishka sadilchamishka merged commit 302f3a7 into wso2:main Nov 18, 2024
4 checks passed
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.

4 participants