-
Notifications
You must be signed in to change notification settings - Fork 57
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
Block organization name with HTML content #159
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
PR builder started |
PR builder completed |
There was a problem hiding this 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
...arbon/identity/organization/management/service/constant/OrganizationManagementConstants.java
Outdated
Show resolved
Hide resolved
c4245e2
to
30a80d4
Compare
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.