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

resolve 3.1.1 #202

Merged
merged 3 commits into from
Oct 1, 2024
Merged

resolve 3.1.1 #202

merged 3 commits into from
Oct 1, 2024

Conversation

slubwama
Copy link
Contributor

@slubwama slubwama commented Oct 1, 2024

No description provided.

@slubwama slubwama requested a review from dkayiwa October 1, 2024 01:08
if (input == null) {
return null;
}
return input.replaceAll("[<>\"'%;()&+]", "");
Copy link
Member

Choose a reason for hiding this comment

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

I do not like the manual sanitisation. Can't we use something like WebUtil.escapeHTML() or

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dkayiwa resolved comment

@@ -71,7 +72,7 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response) t
return;
}

reportType = sanitizeInput(reportType);
reportType = WebUtil.escapeHTML(reportType);
Copy link
Member

@dkayiwa dkayiwa Oct 1, 2024

Choose a reason for hiding this comment

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

Did you confirm that reports continue to display correctly?

@dkayiwa dkayiwa merged commit 842b483 into openmrs:master Oct 1, 2024
1 check 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.

2 participants