Skip to content

Commit 5241af5

Browse files
committed
Fix mailto link on top right
1 parent 96ec99e commit 5241af5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/org/owasp/webgoat/controller/Start.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public ModelAndView start(HttpServletRequest request,
4848
model.addObject("role", role);
4949
model.addObject("user", user);
5050

51+
String contactEmail = request.getServletContext().getInitParameter("email");
52+
model.addObject("contactEmail", contactEmail);
53+
5154
// if everything ok then go to webgoat UI
5255
model.setViewName("main_new");
5356
return model;

src/main/webapp/WEB-INF/pages/main_new.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<button type="button" class="btn btn-default right_nav_button" ng-click="showAbout()" data-toggle="tooltip" title="About WebGoat">
9292
<i class="fa fa-info"></i>
9393
</button>
94-
<a href="mailto:[email protected]?Subject=Hello%20again" target="_top">
94+
<a href="mailto:${contactEmail}?Subject=Webgoat%20feedback" target="_top">
9595
<button type="button" class="btn btn-default right_nav_button"data-toggle="tooltip" title="Contact Us">
9696
<i class="fa fa-envelope"></i>
9797
</button>

0 commit comments

Comments
 (0)