Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Update RequestInputFilter.java
Browse files Browse the repository at this point in the history
Allow "Metadata", but not "meta" or "Meta".
  • Loading branch information
noaaroland authored Sep 29, 2022
1 parent 53be128 commit b4b7306
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ public boolean validateTemplateAndImage(HttpServletRequest request) {
if (v.toLowerCase().contains(">") ||
v.toLowerCase().contains("<") ||
v.toLowerCase().contains("script") ||
v.toLowerCase().contains("meta") ||
// Want Metadata, but not "meta".
(v.toLowerCase().contains("meta") && !v.contains("Metadata")) ||
v.toLowerCase().contains("refresh") ||
v.toLowerCase().contains("equiv")
) {
Expand Down

0 comments on commit b4b7306

Please sign in to comment.