Skip to content

Commit

Permalink
Update ScriptServlet.java
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-cipollone-sonarsource authored Feb 14, 2024
1 parent 0c34958 commit c5fa02f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/demo/security/servlet/ScriptServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ public class ScriptServlet extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String data = request.getParameter("data");
try {
//TODO - Add additional features here
Utils.executeJs(data);
} catch (ScriptException e) {
throw new RuntimeException(e);
}
}
}
}

0 comments on commit c5fa02f

Please sign in to comment.