这是indexloc提供的服务,不要输入任何密码
Skip to content

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

}

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