Skip to content

Commit

Permalink
Address new vulnerability with handleClearListValCache and handleClea…
Browse files Browse the repository at this point in the history
…rListStatCache by separating these into two try-catch blocks
  • Loading branch information
bikegeek committed Jul 9, 2024
1 parent 703eaf1 commit 298e3d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/edu/ucar/metviewer/MVServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) {
strResp.append(MVUtil.domSourceToString(docResp));
try {
handleClearListValCache();
} catch(ParserConfigurationException e) {
logger.error(e.getMessage());
}
try{
handleClearListStatCache();
} catch (ParserConfigurationException e) {
logger.error(e.getMessage());
Expand Down

0 comments on commit 298e3d5

Please sign in to comment.