Skip to content

Commit

Permalink
Revert to combining the handleClearListValCache and handleClearListSt…
Browse files Browse the repository at this point in the history
…atCache under a single try block (the original fix to vulnerability).
  • Loading branch information
bikegeek committed Aug 19, 2024
1 parent 06f5693 commit b968e96
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions java/edu/ucar/metviewer/MVServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -1294,20 +1294,12 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) {
strResp.append(MVUtil.domSourceToString(docResp));
try {
handleClearListValCache();
handleClearListStatCache();
} catch (ParserConfigurationException e) {
logger.error(e.getMessage());
} catch (Exception e){
logger.error(e.getMessage());
} finally{
return;
}

try{
handleClearListStatCache();
} catch (ParserConfigurationException e) {
logger.error(e.getMessage());
}

}

// <date> tag, which is used to prevent caching
Expand Down

0 comments on commit b968e96

Please sign in to comment.