Skip to content

Commit

Permalink
Remove unnecessary URL check
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura authored Sep 20, 2017
1 parent 8a25c86 commit 97d8abf
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr

String gotoUrl = request.getParameter("goto");
if (gotoUrl != null) {
try {
URL u = new URL(gotoUrl);
gotoUrl = u.toURI().toString();
} catch (Exception e) {
log.warn("Invalid goto Url: {}", gotoUrl);
}
response.sendRedirect(gotoUrl);
} else {
String target = (String) session.getAttribute("target");
Expand Down

0 comments on commit 97d8abf

Please sign in to comment.