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

Commit

Permalink
Filter a few more things...
Browse files Browse the repository at this point in the history
  • Loading branch information
noaaroland committed Aug 1, 2022
1 parent 6c5d957 commit 53be128
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,11 @@ public boolean validateTemplateAndImage(HttpServletRequest request) {
if (v.toLowerCase().contains(">") ||
v.toLowerCase().contains("<") ||
v.toLowerCase().contains("script") ||
v.toLowerCase().contains("/") ||
v.toLowerCase().contains("%") ||
v.toLowerCase().contains("..") ) {
return false;
}
if ( v.equals(vm[i]) ) {
return true;
}
Expand All @@ -429,7 +433,6 @@ public boolean validateTemplateAndImage(HttpServletRequest request) {
v.toLowerCase().contains("refresh") ||
v.toLowerCase().contains("equiv")
) {
>>>>>>> 9afbb8887c0051a06c31109e97022991c57db476
return false;
}
}
Expand Down

0 comments on commit 53be128

Please sign in to comment.